author | jurikm |
Sun, 12 Feb 2012 14:04:10 +0000 | |
changeset 8245 | 383896da4129 |
parent 283 | 48eddd340291 |
permissions | -rw-r--r-- |
283 | 1 |
--- mplayerplug-in/Source/plugin-threads.cpp-p4 Thu Feb 15 04:59:40 2007 |
2 |
+++ mplayerplug-in/Source/plugin-threads.cpp Sat May 19 12:06:47 2007 |
|
3 |
@@ -228,9 +228,11 @@ |
|
4 |
// make the operations on the control pipe non-blocking |
|
5 |
flags = fcntl(*control, F_GETFL, 0); |
|
6 |
flags |= O_NONBLOCK; |
|
7 |
-#ifndef BSD |
|
8 |
- flags |= O_NDELAY; |
|
9 |
+ |
|
10 |
+#if defined(BSD) || !defined(_POSIX_C_SOURCE) |
|
11 |
+ flags |= O_NDELAY; |
|
12 |
#endif |
|
13 |
+ |
|
14 |
fcntl(*control, F_SETFL, flags); |
|
15 |
||
16 |
retfd = fdopen(filedesr[0], "r"); |