Revision: 157 http://trac.macosforge.org/projects/libdispatch/changeset/157 Author: kvv@apple.com Date: 2009-11-14 17:05:48 -0800 (Sat, 14 Nov 2009) Log Message: ----------- use HAVE_UNISTD_H test Modified Paths: -------------- trunk/src/internal.h trunk/src/private.h Modified: trunk/src/internal.h =================================================================== --- trunk/src/internal.h 2009-11-14 23:58:57 UTC (rev 156) +++ trunk/src/internal.h 2009-11-15 01:05:48 UTC (rev 157) @@ -115,7 +115,9 @@ #include <stdlib.h> #include <string.h> #include <syslog.h> +#if HAVE_UNISTD_H #include <unistd.h> +#endif #define DISPATCH_NOINLINE __attribute__((noinline)) Modified: trunk/src/private.h =================================================================== --- trunk/src/private.h 2009-11-14 23:58:57 UTC (rev 156) +++ trunk/src/private.h 2009-11-15 01:05:48 UTC (rev 157) @@ -32,7 +32,9 @@ #include <mach/mach.h> #include <mach/message.h> #endif +#if HAVE_UNISTD_H #include <unistd.h> +#endif #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif
participants (1)
-
source_changes@macosforge.org