Check for sys/sysctl.h PATCH
Not available on Solaris... Joakim
svn diff Index: configure.ac =================================================================== --- configure.ac (revision 159) +++ configure.ac (working copy) @@ -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 Index: src/internal.h =================================================================== --- src/internal.h (revision 159) +++ src/internal.h (working copy) @@ -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>
participants (2)
-
Joakim Johansson
-
Robert Watson