]> granicus.if.org Git - cronie/commitdiff
Portability: Check if sys/cdefs.h is there on the platform
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>
Thu, 26 Jun 2008 08:35:48 +0000 (10:35 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Thu, 26 Jun 2008 08:35:48 +0000 (10:35 +0200)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
configure.ac
src/popen.c

index 5db7d352046359eaaf728c43d1b232698a0f2791..f07e5694653fedf33bc83d0b8632ee0cf638b527 100644 (file)
@@ -31,9 +31,10 @@ AC_CHECK_HEADERS( \
         sys/stat.h \
         sys/stream.h \
         sys/stropts.h \
-               sys/time.h \
+        sys/time.h \
         sys/timers.h \
         sys/types.h \
+        sys/cdefs.h \
         time.h \
         unistd.h \
         util.h \
index bc75fd1c7299501846c29c0e9aa9c51590fc34d6..e52f755e53482c53b00c2e6e199f3dbf260f84ee 100644 (file)
@@ -30,7 +30,9 @@
  *
  */
 
+#ifdef HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
+#endif
 
 #include <cron.h>
 #include <signal.h>