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 aa22640..977879f 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "funchandlers.h"
 
-#ifdef __linux__
+#if defined ( POSIX )
 #include <sys/types.h>
 #include <unistd.h>
 #endif