diff configure.ac @ 2162:a464da684307

[gaim-migrate @ 2172] couple fixes. Max Horn told me about one of them. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 24 Aug 2001 01:36:05 +0000
parents 7b68621e26db
children f47ff201c53c
line wrap: on
line diff
--- a/configure.ac	Fri Aug 24 01:10:51 2001 +0000
+++ b/configure.ac	Fri Aug 24 01:36:05 2001 +0000
@@ -32,7 +32,8 @@
 AC_TYPE_SIGNAL
 AC_FUNC_STRFTIME
 AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo)
-AC_TRY_COMPILE(sys/socket.h, typedef unsigned int socklen_t;, AC_DEFINE(NEED_SOCKLEN_T),)
+AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/socket.h>], typedef unsigned int socklen_t;, AC_DEFINE(NEED_SOCKLEN_T),)
 
 dnl Checks for getopt in standard library
 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )