svn commit: samba r25017 - in branches/SAMBA_4_0: . source/lib/replace source/lib/replace/system

jelmer at samba.org jelmer at samba.org
Sat Sep 8 01:39:32 GMT 2007


Author: jelmer
Date: 2007-09-08 01:39:31 +0000 (Sat, 08 Sep 2007)
New Revision: 25017

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25017

Log:
Move MAXHOSTNAMELEN definition to replace.h as it is usually part of 
sys/param.h.

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/replace/replace.h
   branches/SAMBA_4_0/source/lib/replace/system/network.h


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h	2007-09-08 01:29:52 UTC (rev 25016)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h	2007-09-08 01:39:31 UTC (rev 25017)
@@ -375,6 +375,14 @@
 #define HOST_NAME_MAX 64
 #endif
 
+/*
+ * Some older systems seem not to have MAXHOSTNAMELEN
+ * defined.
+ */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN HOST_NAME_MAX
+#endif
+
 #ifndef UINT16_MAX
 #define UINT16_MAX 65535
 #endif

Modified: branches/SAMBA_4_0/source/lib/replace/system/network.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/system/network.h	2007-09-08 01:29:52 UTC (rev 25016)
+++ branches/SAMBA_4_0/source/lib/replace/system/network.h	2007-09-08 01:39:31 UTC (rev 25017)
@@ -98,14 +98,6 @@
 #define MSG_WAITALL 0
 #endif
 
-/*
- * Some older systems seem not to have MAXHOSTNAMELEN
- * defined.
- */
-#ifndef MAXHOSTNAMELEN
-#define MAXHOSTNAMELEN 254
-#endif
-
 #ifndef INADDR_LOOPBACK
 #define INADDR_LOOPBACK 0x7f000001
 #endif



More information about the samba-cvs mailing list