From d96e3ba6eda3f3ebf2c705c6d2cc6fa596c4a115 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 25 Jun 2009 12:24:57 +0000 Subject: [PATCH] Include sys/wait.h to fix missing references to WIFEXITED and WEXITSTATUS. --- configure.in | 2 +- include/conf.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5