Browse code

Only bring in <sys/cdefs.h> if it's available

Shawn Webb authored on 2014/08/14 01:12:04
Showing 4 changed files
... ...
@@ -378,6 +378,9 @@
378 378
 /* Define to 1 if you have the `sysctlbyname' function. */
379 379
 #undef HAVE_SYSCTLBYNAME
380 380
 
381
+/* Define to 1 if you have the <sys/cdefs.h> header file. */
382
+#undef HAVE_SYS_CDEFS_H
383
+
381 384
 /* Define to 1 if you have the <sys/dl.h> header file. */
382 385
 #undef HAVE_SYS_DL_H
383 386
 
... ...
@@ -14210,7 +14210,7 @@ esac
14210 14210
 
14211 14211
 
14212 14212
 
14213
-for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h sys/queue.h
14213
+for ac_header in stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h sys/queue.h sys/cdefs.h
14214 14214
 do :
14215 14215
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 14216
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
... ...
@@ -1,4 +1,4 @@
1
-AC_CHECK_HEADERS([stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h sys/queue.h])
1
+AC_CHECK_HEADERS([stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h sys/times.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h stdbool.h pwd.h grp.h sys/queue.h sys/cdefs.h])
2 2
 AC_CHECK_HEADER([syslog.h],AC_DEFINE([USE_SYSLOG],1,[use syslog]),)
3 3
 
4 4
 have_pthreads=no
... ...
@@ -33,7 +33,9 @@
33 33
 #ifndef _SYS_QUEUE_H_
34 34
 #define	_SYS_QUEUE_H_
35 35
 
36
+#if HAVE_SYS_CDEFS_H
36 37
 #include <sys/cdefs.h>
38
+#endif
37 39
 
38 40
 /*
39 41
  * This file defines four types of data structures: singly-linked lists,