]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Include sys/wait.h to fix missing references to WIFEXITED and WEXITSTATUS.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 25 Jun 2009 12:24:57 +0000 (12:24 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 25 Jun 2009 12:24:57 +0000 (12:24 +0000)
configure.in
include/conf.h

index f8737d10f58e4f7a0063f885ea96cbdcf44474f9..ff8733c5104f86590109ce63257637492a42aa80 100644 (file)
@@ -47,7 +47,7 @@ fi
 AC_CHECK_HEADERS(stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
                 dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \
                 ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
-                errno.h sys/resource.h)
+                errno.h sys/resource.h sys/wait.h)
 
 AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD="yes", HAVE_GD="")
 
index 2cb9510253a2b5682c498086a245f0f6cb428273..4f8883fdc432c3d6a60035a0498af042e0e42e5f 100755 (executable)
@@ -55,6 +55,9 @@
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 #if HAVE_GD_H
 #include <gd.h>
 #define HAVE_GD