diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-27 13:17:08 +0100 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-27 13:17:08 +0100 |
| commit | e20f1bb6dba342fcc91d3fcf28d64c7d5fd39a38 (patch) | |
| tree | 0daf321bd175d97b6813222002f1ebc9160efb42 /source4/lib/replace/system | |
| parent | 39eb63039163cf7625edf5c0a33112a0659c3eca (diff) | |
| parent | c9009b9876e14ce9bd9e6941a8344e1f5e47dd21 (diff) | |
| download | samba-e20f1bb6dba342fcc91d3fcf28d64c7d5fd39a38.tar.gz samba-e20f1bb6dba342fcc91d3fcf28d64c7d5fd39a38.tar.bz2 samba-e20f1bb6dba342fcc91d3fcf28d64c7d5fd39a38.zip | |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake-simple
(This used to be commit a9fe1b785dd59acbfab4eb90256e7a0cb0f4da6e)
Diffstat (limited to 'source4/lib/replace/system')
| -rw-r--r-- | source4/lib/replace/system/network.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h index d09e3f71f8..410c6d7cca 100644 --- a/source4/lib/replace/system/network.h +++ b/source4/lib/replace/system/network.h @@ -83,6 +83,11 @@ #include <stropts.h> #endif +#ifndef HAVE_SOCKLEN_T +#define HAVE_SOCKLEN_T +typedef int socklen_t; +#endif + #ifdef REPLACE_INET_NTOA /* define is in "replace.h" */ char *rep_inet_ntoa(struct in_addr ip); @@ -98,6 +103,16 @@ int rep_inet_pton(int af, const char *src, void *dst); const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size); #endif +#ifndef HAVE_CONNECT +/* define is in "replace.h" */ +int rep_connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); +#endif + +#ifndef HAVE_GETHOSTBYNAME +/* define is in "replace.h" */ +struct hostent *rep_gethostbyname(const char *name); +#endif + #ifdef HAVE_IFADDRS_H #include <ifaddrs.h> #endif @@ -245,11 +260,6 @@ void rep_freeifaddrs(struct ifaddrs *); #define HOST_NAME_MAX 256 #endif -#ifndef HAVE_SOCKLEN_T -#define HAVE_SOCKLEN_T -typedef int socklen_t; -#endif - #ifndef HAVE_SA_FAMILY_T #define HAVE_SA_FAMILY_T typedef unsigned short int sa_family_t; |
