[libdispatch-changes] [160] trunk

source_changes at macosforge.org source_changes at macosforge.org
Sun Nov 15 13:53:41 PST 2009


Revision: 160
          http://trac.macosforge.org/projects/libdispatch/changeset/160
Author:   robert at fledge.watson.org
Date:     2009-11-15 13:53:40 -0800 (Sun, 15 Nov 2009)
Log Message:
-----------
Test for sys/sysctl.h before including.

Submitted by:	Joakim Johansson <jocke at tbricks.com>

Modified Paths:
--------------
    trunk/configure.ac
    trunk/src/internal.h

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2009-11-15 13:13:45 UTC (rev 159)
+++ trunk/configure.ac	2009-11-15 21:53:40 UTC (rev 160)
@@ -143,7 +143,7 @@
 # Checks for header files.
 #
 AC_HEADER_STDC
-AC_CHECK_HEADERS([TargetConditionals.h pthread_machdep.h pthread_np.h malloc/malloc.h libkern/OSCrossEndian.h libkern/OSAtomic.h])
+AC_CHECK_HEADERS([TargetConditionals.h pthread_machdep.h pthread_np.h malloc/malloc.h libkern/OSCrossEndian.h libkern/OSAtomic.h sys/sysctl.h])
 
 #
 # Core Services is tested in one of the GCD regression tests, so test for its

Modified: trunk/src/internal.h
===================================================================
--- trunk/src/internal.h	2009-11-15 13:13:45 UTC (rev 159)
+++ trunk/src/internal.h	2009-11-15 21:53:40 UTC (rev 160)
@@ -88,7 +88,9 @@
 #include <sys/mount.h>
 #include <sys/queue.h>
 #include <sys/stat.h>
+#if HAVE_SYS_SYSCTL_H
 #include <sys/sysctl.h>
+#endif
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <netinet/in.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091115/f735900f/attachment.html>


More information about the libdispatch-changes mailing list