Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
authorMichael Adam <obnox@samba.org>
Tue, 26 Feb 2008 10:18:51 +0000 (11:18 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 26 Feb 2008 10:55:39 +0000 (11:55 +0100)
Michael

source/lib/replace/system/network.h

index d09e3f71f8d5b3511484edbb3fbbcde546cb0133..a84b22e5d086ffc18345c6652f9074e125e48dd7 100644 (file)
 #include <stropts.h>
 #endif
 
+#ifndef HAVE_SOCKLEN_T
+#define HAVE_SOCKLEN_T
+typedef int socklen_t;
+#endif
+
 #ifdef REPLACE_INET_NTOA
 /* define is in "replace.h" */
 char *rep_inet_ntoa(struct in_addr ip);
@@ -245,11 +250,6 @@ void rep_freeifaddrs(struct ifaddrs *);
 #define HOST_NAME_MAX 256
 #endif
 
-#ifndef HAVE_SOCKLEN_T
-#define HAVE_SOCKLEN_T
-typedef int socklen_t;
-#endif
-
 #ifndef HAVE_SA_FAMILY_T
 #define HAVE_SA_FAMILY_T
 typedef unsigned short int sa_family_t;