From: SATOH Fumiyasu Date: Thu, 26 Jun 2008 08:35:48 +0000 (+0200) Subject: Portability: Check if sys/cdefs.h is there on the platform X-Git-Tag: cronie1.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d33bef9e4480aebc1f9e4cb7ffe06221bebc26f6;p=cronie Portability: Check if sys/cdefs.h is there on the platform Signed-off-by: Marcela Mašláňová --- diff --git a/configure.ac b/configure.ac index 5db7d35..f07e569 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ diff --git a/src/popen.c b/src/popen.c index bc75fd1..e52f755 100644 --- a/src/popen.c +++ b/src/popen.c @@ -30,7 +30,9 @@ * */ +#ifdef HAVE_SYS_CDEFS_H #include +#endif #include #include