]> arthur.barton.de Git - ngircd-alex.git/commitdiff
On AIX (for example) socklen_t is defined in sys/socket.h
authorAlexander Barton <alex@barton.de>
Thu, 1 May 2008 18:25:39 +0000 (20:25 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 1 May 2008 18:25:39 +0000 (20:25 +0200)
On AIX and probably other systems socklen_t is defined in sys/socket.h,
so we have to include it here explicitly (tested by Florian).

src/ipaddr/ng_ipaddr.h

index 1e198b0e7ce41d49e0d18f8f0189e8a9dc1390c3..32839d083a8ab1e7328864ee2e376805ac890e6e 100644 (file)
@@ -8,6 +8,8 @@
 #define NG_IPADDR_HDR
 #include "portab.h"
 
+#include <sys/socket.h>
+
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #else