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

metze at samba.org metze at samba.org
Wed Oct 17 13:58:20 GMT 2007


Author: metze
Date: 2007-10-17 13:58:19 +0000 (Wed, 17 Oct 2007)
New Revision: 25677

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

Log:
add missing stuff from samba3
metze

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/system/network.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/system/network.h	2007-10-17 12:00:30 UTC (rev 25676)
+++ branches/SAMBA_4_0/source/lib/replace/system/network.h	2007-10-17 13:58:19 UTC (rev 25677)
@@ -120,8 +120,38 @@
 #define INADDR_NONE 0xffffffff
 #endif
 
+#ifndef EAFNOSUPPORT
+#define EAFNOSUPPORT EINVAL
+#endif
+
 #ifndef INET_ADDRSTRLEN
 #define INET_ADDRSTRLEN 16
 #endif
 
+#ifndef INET6_ADDRSTRLEN
+#define INET6_ADDRSTRLEN 46
 #endif
+
+#ifndef HAVE_SOCKLEN_T
+typedef int socklen_t;
+#endif
+
+#ifndef HAVE_SA_FAMILY_T
+typedef unsigned short int sa_family_t;
+#endif
+
+#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
+#ifdef HAVE_STRUCT_SOCKADDR_IN6
+#define sockaddr_storage sockaddr_in6
+#define ss_family sin6_family
+#else
+#define sockaddr_storage sockaddr_in
+#define ss_family sin_family
+#endif
+#endif
+
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 256
+#endif
+
+#endif



More information about the samba-cvs mailing list