From: Frédéric Marchal Date: Thu, 25 Jun 2009 12:24:57 +0000 (+0000) Subject: Include sys/wait.h to fix missing references to WIFEXITED and WEXITSTATUS. X-Git-Tag: v2_2_6~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d96e3ba6eda3f3ebf2c705c6d2cc6fa596c4a115;p=thirdparty%2Fsarg.git Include sys/wait.h to fix missing references to WIFEXITED and WEXITSTATUS. --- diff --git a/configure.in b/configure.in index f8737d1..ff8733c 100644 --- a/configure.in +++ b/configure.in @@ -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="") diff --git a/include/conf.h b/include/conf.h index 2cb9510..4f8883f 100755 --- a/include/conf.h +++ b/include/conf.h @@ -55,6 +55,9 @@ #if HAVE_ERRNO_H #include #endif +#if HAVE_SYS_WAIT_H +#include +#endif #if HAVE_GD_H #include #define HAVE_GD