lib/replace: move MAXHOSTNAMELEN to system/network.h
[samba.git] / lib / replace / system / network.h
index 473d79b5f2997835e9a6c426d0f63a721ece9feb..40d20db2d4a4ac7fc3504f8e092cf7a80d47c5d9 100644 (file)
@@ -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