r8458: next target is irix - this gets the socket wrapper code building
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2005 09:23:52 +0000 (09:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:05 +0000 (13:23 -0500)
(This used to be commit 3d4a2221c3e032bbb6c23d132e00588f44f5e2ed)

source4/include/system/network.h
source4/lib/replace/replace.h

index 3d833780ec1c0a7503f261f0442aa8ae63cf4a95..83ebf9286f2a5c4e9083a3ba25e254b1b0ff4dcc 100644 (file)
 #define MAXHOSTNAMELEN 254
 #endif
 
-#ifndef HAVE_SOCKLEN_T_TYPE
-typedef int socklen_t;
-#endif
-
 #ifndef INADDR_LOOPBACK
 #define INADDR_LOOPBACK 0x7f000001
 #endif
index 48e46ba18e9769b690462c07cb6bfce9a5ddedd9..13cbc9dfe4919d046846c40a54a915edcc02e47e 100644 (file)
@@ -131,4 +131,8 @@ typedef unsigned short u_int16_t;
 typedef unsigned char u_int8_t;
 #endif
 
+#ifndef HAVE_SOCKLEN_T
+#define socklen_t int
+#endif
+
 #endif