From: Rudolf Polzer Date: Tue, 28 Oct 2014 14:37:21 +0000 (+0000) Subject: Include unistd.h on POSIX, not just on __linux__. X-Git-Tag: xonotic-v0.8.0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1f1fd0b9be05a503017bd5752f966f832639a4c;p=xonotic%2Fnetradiant.git Include unistd.h on POSIX, not just on __linux__. Should fix use of fork() on OS X. --- diff --git a/contrib/bobtoolz/misc.cpp b/contrib/bobtoolz/misc.cpp index aa22640a..977879f5 100644 --- a/contrib/bobtoolz/misc.cpp +++ b/contrib/bobtoolz/misc.cpp @@ -31,7 +31,7 @@ #include "funchandlers.h" -#ifdef __linux__ +#if defined ( POSIX ) #include #include #endif