diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-17 13:58:19 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:09 +0100 |
commit | ce7a3abcd8174c9693db853734f3d17bde9a4194 (patch) | |
tree | 108c88c025aed3d037ab13e579590d59e4c4ba64 /source4/lib | |
parent | e95a5e25419cd64eb8a0266178f77dd05c082c6e (diff) | |
download | samba-ce7a3abcd8174c9693db853734f3d17bde9a4194.tar.gz samba-ce7a3abcd8174c9693db853734f3d17bde9a4194.tar.bz2 samba-ce7a3abcd8174c9693db853734f3d17bde9a4194.zip |
r25677: add missing stuff from samba3
metze
(This used to be commit d286c0533dd2726ebc547dcaf99f45169d4a9d2f)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/system/network.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h index 8b911cf7d3..0b0dbcb88d 100644 --- a/source4/lib/replace/system/network.h +++ b/source4/lib/replace/system/network.h @@ -120,8 +120,38 @@ const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size); #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 |