[AC_DEFINE(HAVE_PROTOTYPES) AC_MSG_RESULT(yes)],
AC_MSG_RESULT(no))
-dnl Check out the wait reality.
-AC_CHECK_HEADERS(sys/wait.h) AC_CHECK_FUNCS(waitpid wait3)
+dnl Check out the wait reality. We have to assume sys/wait.h is present.
+AC_CHECK_FUNCS(waitpid wait3)
AC_MSG_CHECKING(for union wait);
AC_TRY_LINK([#include <sys/types.h>
#include <sys/wait.h>],
#include <config.h>
#include <stdio.h>
+#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
-#include <signal.h>
-#include <fcntl.h>
-
-#if defined(HAVE_SYS_WAIT_H)
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
#if defined(HAVE_UNISTD_H)
-# include <unistd.h>
+#include <unistd.h>
#endif
#if defined(STDC_HEADERS)
#endif
#if defined(QNX)
-# include <unix.h>
+#include <unix.h>
#endif
/* BSD portability hack */
#include <stdio.h>
#include <setjmp.h>
#include <ctype.h>
+#include <string.h>
#if defined(STDC_HEADERS)
#include <stdlib.h>
-#include <string.h>
#endif
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
*/
#include <config.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <time.h>
+#include <stdio.h>
#if defined(STDC_HEADERS)
#include <stdlib.h>
-#include <string.h>
#endif
-
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
-
+#include <string.h>
#include <signal.h>
#include <pwd.h>
-#include <errno.h>
-
-#include <sys/types.h>
-#include <sys/file.h>
-#include <sys/wait.h>
-#include <sys/stat.h>
#include <sys/time.h>
-#include <fcntl.h>
#ifdef HAVE_GETHOSTBYNAME
#include <netdb.h>
*/
#include <config.h>
-#include <stdio.h>
+
#include <pwd.h>
#include <string.h>
#if defined(STDC_HEADERS)
*/
#include <config.h>
+
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
* For license terms, see the file COPYING in this directory.
*/
-#include <stdio.h>
#include <config.h>
-#include <sys/types.h>
+#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "socket.h"
#include <config.h>
#include <stdio.h>
-#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#if defined(STDC_HEADERS)
-#include <string.h>
#include <stdlib.h>
#endif
#if defined(HAVE_UNISTD_H)
#else
#include <varargs.h>
#endif
-#include <errno.h>
#include "socket.h"
FILE *Socket(host, clientPort)
#include <config.h>
#include <stdio.h>
+#include <string.h>
#if defined(STDC_HEADERS)
#include <stdlib.h>
-#include <string.h>
#endif
#if defined(HAVE_UNISTD_H)
#include <config.h>
#include <stdio.h>
#include <string.h>
-#include <sys/types.h>
#if defined(STDC_HEADERS)
#include <stdlib.h>
#endif