git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/replace: move MAXHOSTNAMELEN to system/network.h
[samba.git]
/
lib
/
replace
/
system
/
network.h
diff --git
a/lib/replace/system/network.h
b/lib/replace/system/network.h
index 473d79b5f2997835e9a6c426d0f63a721ece9feb..40d20db2d4a4ac7fc3504f8e092cf7a80d47c5d9 100644
(file)
--- a/
lib/replace/system/network.h
+++ b/
lib/replace/system/network.h
@@
-271,7
+271,11
@@
int rep_socketpair(int d, int type, int protocol, int sv[2]);
#endif
#ifndef HOST_NAME_MAX
-#define HOST_NAME_MAX 256
+#define HOST_NAME_MAX 255
+#endif
+
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN HOST_NAME_MAX
#endif
#ifndef HAVE_SA_FAMILY_T