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^0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e995cc897b8a0d2b2828612cb0b226b7520fea86;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