diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-05 23:54:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:51 -0500 |
commit | e511090a4339221dfd1fa597964af7455f96ec28 (patch) | |
tree | 642564ee8fc2222bea72eecf632cac09afd34be0 /source4/lib/replace/system | |
parent | f0bc19ae47d7f06d111713b0dbb00f387621e675 (diff) | |
download | samba-e511090a4339221dfd1fa597964af7455f96ec28.tar.gz samba-e511090a4339221dfd1fa597964af7455f96ec28.tar.bz2 samba-e511090a4339221dfd1fa597964af7455f96ec28.zip |
r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo
(and friends) from SAMBA_3_2, with some minor tweaks:
- avoid including network headers in replace.h unless absolutely required
- autoconf tests for getaddrinfo() in lib/replace
The heimdal-specific code also no longer looks for these functions anymore.
(This used to be commit b6d3fd84a5d7d814035e60d6fa22f19bed9f77da)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r-- | source4/lib/replace/system/network.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h index 7469040b28..877f5f25e6 100644 --- a/source4/lib/replace/system/network.h +++ b/source4/lib/replace/system/network.h @@ -49,6 +49,10 @@ #include <netinet/tcp.h> #endif +#if !defined(HAVE_GETADDRINFO) +#include "getaddrinfo.h" +#endif + /* * The next three defines are needed to access the IPTOS_* options * on some systems. |