diff configure.in @ 1427:5d62849e7275

[xemacs-hg @ 2003-04-24 05:26:40 by youngs] 2003-04-24 Steve Youngs <youngs@xemacs.org> * configure.in: Fix for building on openbsd. From Gregory Steuck <greg@nest.cx> * configure: Regenerate
author youngs
date Thu, 24 Apr 2003 05:26:42 +0000
parents 72bc4b7c2480
children 5142be485095
line wrap: on
line diff
--- a/configure.in	Wed Apr 23 21:52:26 2003 +0000
+++ b/configure.in	Thu Apr 24 05:26:42 2003 +0000
@@ -2527,10 +2527,12 @@
 
 dnl check for Unix98 socklen_t
 AC_MSG_CHECKING(for socklen_t)
-AC_TRY_COMPILE([#include <sys/socket.h>
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>
 socklen_t x;
 ],[],[AC_MSG_RESULT(yes)],[
-AC_TRY_COMPILE([#include <sys/socket.h>
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>
 int accept (int, struct sockaddr *, size_t *);
 ],[],[
 AC_MSG_RESULT(size_t)