summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-26 11:18:51 +0100
committerMichael Adam <obnox@samba.org>2008-02-26 12:01:39 +0100
commit901addd4a18a9a166fc3518a7bce70969f884e6f (patch)
tree546979cc9957464975cae72811d53993240135ac /source4/lib/replace
parentdb2a2382d1dfcb9ace4621368feebd700b598625 (diff)
downloadsamba-901addd4a18a9a166fc3518a7bce70969f884e6f.tar.gz
samba-901addd4a18a9a166fc3518a7bce70969f884e6f.tar.bz2
samba-901addd4a18a9a166fc3518a7bce70969f884e6f.zip
Fix build on VOS: socklen_t is needed for rep_inet_ntop: move it up.
Michael (This used to be commit 8a26a6e8f11aca5119b15e304213548ad608dc5b)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/system/network.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index d09e3f71f8..a84b22e5d0 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -83,6 +83,11 @@
#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;