summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-10-24 12:55:40 +0000
committerStefan Metzmacher <metze@samba.org>2007-10-25 15:52:47 +0200
commit556513ff72b2ef13654f7a5b3856f7b66a2112b7 (patch)
tree69a30e50a201c2bff4f7f6047773d60b7fa5df56 /source3/lib/replace/system
parent8cca849769ba44ab9dc5bd875056987e541b92fe (diff)
downloadsamba-556513ff72b2ef13654f7a5b3856f7b66a2112b7.tar.gz
samba-556513ff72b2ef13654f7a5b3856f7b66a2112b7.tar.bz2
samba-556513ff72b2ef13654f7a5b3856f7b66a2112b7.zip
[libreplace] move define of a constant to near to the others
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit fa120f7c50d0084e7d887811e5fa59ae3bcfe53e)
Diffstat (limited to 'source3/lib/replace/system')
-rw-r--r--source3/lib/replace/system/network.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index 79fe21405f..1ac881e496 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/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