]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Include unistd.h on POSIX, not just on __linux__. xonotic-v0.8.0
authorRudolf Polzer <divverent@gmail.com>
Tue, 28 Oct 2014 14:37:21 +0000 (14:37 +0000)
committerRudolf Polzer <divverent@gmail.com>
Tue, 28 Oct 2014 14:37:21 +0000 (14:37 +0000)
Should fix use of fork() on OS X.

contrib/bobtoolz/misc.cpp

index aa22640a1cccb5b46d65dd2094465c3020a6414a..977879f59e4b0fe4f239356eddef76aa623e87f3 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "funchandlers.h"
 
-#ifdef __linux__
+#if defined ( POSIX )
 #include <sys/types.h>
 #include <unistd.h>
 #endif