patches/mpplugin-04-ndelay.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 283 48eddd340291
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
283
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     1
--- mplayerplug-in/Source/plugin-threads.cpp-p4	Thu Feb 15 04:59:40 2007
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     2
+++ mplayerplug-in/Source/plugin-threads.cpp	Sat May 19 12:06:47 2007
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     3
@@ -228,9 +228,11 @@
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     4
 	// make the operations on the control pipe non-blocking
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     5
 	flags = fcntl(*control, F_GETFL, 0);
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     6
 	flags |= O_NONBLOCK;
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     7
-#ifndef BSD
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     8
-	flags |= O_NDELAY;
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
     9
+
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    10
+#if defined(BSD) || !defined(_POSIX_C_SOURCE)
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    11
+ 	flags |= O_NDELAY;
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    12
 #endif
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    13
+
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    14
 	fcntl(*control, F_SETFL, flags);
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    15
 
48eddd340291 2007-05-21 Dick Hoogendijk <[email protected]>
shinsui
parents:
diff changeset
    16
 	retfd = fdopen(filedesr[0], "r");