summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-06-08 15:23:04 +0200
committerAlexander Barton <alex@barton.de>2010-06-09 12:03:08 +0200
commite2930f3f5e7356d24f4b5e1616cb7674bd0123ec (patch)
tree5a3b4f5f95e7dc411edac2910ae2a79ffdc21de9 /configure.in
parent059e70724945264c2ab4f25edd48a50d173697f6 (diff)
downloadngircd-e2930f3f5e7356d24f4b5e1616cb7674bd0123ec.tar.gz
ngircd-e2930f3f5e7356d24f4b5e1616cb7674bd0123ec.zip
Include correct header files when testing for arpa/inet.h (Closes: #105)
Tested on OpenBSD 4.7, OpenBSD 4.1, FreeBSD 8, Linux and Mac OS X.
Thanks to rck <dev.rck@gmail.com> for reporting and testing!
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 6d9312d4..57883edc 100644
--- a/configure.in
+++ b/configure.in
@@ -108,9 +108,14 @@ AC_CHECK_HEADERS([ \
 AC_CHECK_HEADERS([ \
 	arpa/inet.h ctype.h malloc.h netinet/ip.h stdbool.h stddef.h varargs.h \
 	],[],[],[[
-	#include <netinet/in.h>
-	#ifdef HAVE_NETINET_IN_SYSTM_H
-		#include <netinet/in_systm.h>
+	#ifdef HAVE_SYS_TYPES_H
+		#include <sys/types.h>
+	#endif
+	#ifdef HAVE_SYS_SOCKET_H
+		#include <sys/socket.h>
+	#endif
+	#ifdef HAVE_NETINET_IN_H
+		#include <netinet/in.h>
 	#endif
 	]]
 )