summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-24 12:55:40 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:25 +0100
commitc01f61340bb1792d08e649708124f07ec19cc23d (patch)
treef7146eda9ccb34f6d73b0a7d3d0c7132f8d6a6c2 /source4/lib/replace
parent1cfd89c6aa50334b21fb8db16ab79a42679dd54b (diff)
downloadsamba-c01f61340bb1792d08e649708124f07ec19cc23d.tar.gz
samba-c01f61340bb1792d08e649708124f07ec19cc23d.tar.bz2
samba-c01f61340bb1792d08e649708124f07ec19cc23d.zip
r25714: [libreplace] move define of a constant to near to the others
metze (This used to be commit 8bd2cf71bee1a08c3d420a330730434edbac5e28)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/system/network.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index 79fe21405f..1ac881e496 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -212,6 +212,10 @@ struct addrinfo
#define INET6_ADDRSTRLEN 46
#endif
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 256
+#endif
+
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
@@ -230,10 +234,6 @@ typedef unsigned short int sa_family_t;
#endif
#endif
-#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX 256
-#endif
-
#ifdef SOCKET_WRAPPER
#ifndef SOCKET_WRAPPER_NOT_REPLACE
#define SOCKET_WRAPPER_REPLACE