initial test or pid_t might not be defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13582
dc483132-0cff-0310-8789-
dd5450dbe970
+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
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(