Revision: 69 http://trac.macosforge.org/projects/libdispatch/changeset/69 Author: robert@fledge.watson.org Date: 2009-10-28 07:46:22 -0700 (Wed, 28 Oct 2009) Log Message: ----------- Replace use of sys/syslimits.h with limits.h, which is more portable. Detect and use cdefs.h. Submitted by: Paolo Bonzini <bonzini@gnu.org> Modified Paths: -------------- trunk/configure.ac trunk/src/internal.h Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-10-28 11:22:58 UTC (rev 68) +++ trunk/configure.ac 2009-10-28 14:46:22 UTC (rev 69) @@ -165,6 +165,11 @@ AC_CHECK_DECLS([VQ_UPDATE, VQ_VERYLOWDISK], [], [], [[#include <sys/mount.h>]]) AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone sem_init]) +AC_CHECK_HEADERS([sys/cdefs.h], [], [], + [#ifdef HAVE_SYS_CDEFS_H + #include <sys/cdefs.h> + #endif]) + DISPATCH_C_PRIVATE_EXTERN DISPATCH_C_BLOCKS Modified: trunk/src/internal.h =================================================================== --- trunk/src/internal.h 2009-10-28 11:22:58 UTC (rev 68) +++ trunk/src/internal.h 2009-10-28 14:46:22 UTC (rev 69) @@ -91,7 +91,6 @@ #include <sys/queue.h> #include <sys/stat.h> #include <sys/sysctl.h> -#include <sys/syslimits.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> @@ -104,6 +103,7 @@ #include <assert.h> #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <search.h> #if !defined(HAVE_MACH) && defined(HAVE_SEM_INIT) #include <semaphore.h>
participants (1)
-
source_changes@macosforge.org