summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-08 12:20:26 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-08 12:20:26 +0000
commitdf08e0a45e40f349c1cdb4c5460f4c5ec80b1786 (patch)
treee17bbe729efad52f89fafad3e90a4000d3522918 /src
parentdca9977cfcbb673af41c735e8e53aeed9bb837dc (diff)
* aclocal.m4 (CHECK_WAIT_TYPE): Need to include sys/types.h for
initial test or pid_t might not be defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13582 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/aclocal.m43
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5d268eec5..6babcb607 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-06 Ezra Peisach <epeisach@mit.edu>
+
+ * aclocal.m4 (CHECK_WAIT_TYPE): Need to include sys/types.h for
+ initial test or pid_t might not be defined.
+
2001-07-05 Ezra Peisach <epeisach@mit.edu>
* aclocal.m4 (CHECK_WAIT_TYPE): Improved testing if wait uses int
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 39ad34fee..2998ed9c9 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -148,7 +148,8 @@ define(CHECK_WAIT_TYPE,[
AC_MSG_CHECKING([if argument to wait is int *])
AC_CACHE_VAL(krb5_cv_struct_wait,
dnl Test for prototype clash - if there is none - then assume int * works
-[AC_TRY_COMPILE([#include <sys/wait.h>
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/wait.h>
extern pid_t wait(int *);],[], krb5_cv_struct_wait=no,dnl
dnl Else fallback on old stuff
[AC_TRY_COMPILE(