diff options
author | Michael Adam <obnox@samba.org> | 2007-05-24 15:51:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:51 -0500 |
commit | ef5dc55983b5786d602688a596ea349b0dfdc0c8 (patch) | |
tree | 81126f45bec3180f183de77f517d9a471b9a06f7 /source4/lib/replace/replace.h | |
parent | aa9bf7f628d03a90e98a424833cd1a71c0e01676 (diff) | |
download | samba-ef5dc55983b5786d602688a596ea349b0dfdc0c8.tar.gz samba-ef5dc55983b5786d602688a596ea349b0dfdc0c8.tar.xz samba-ef5dc55983b5786d602688a596ea349b0dfdc0c8.zip |
r23118: Make inet_pton and inet_ntop available through lib/replace.
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.
I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...
Michael
(This used to be commit 9781b13fd3e0c2a0aa66412c571f562c9f17dcbe)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r-- | source4/lib/replace/replace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 3cb3c95b69..3a8ce1a6f1 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -338,6 +338,16 @@ int rep_mkstemp(char *temp); char *rep_mkdtemp(char *template); #endif +#ifdef HAVE_INET_PTON +#define inet_pton rep_inet_pton +int rep_inet_pton(int af, const char *src, void *dst); +#endif + +#ifdef HAVE_INET_NTOP +#define inet_ntop rep_inet_ntop +const char *rep_inet_ntop(int af, const void *src, char *dst, size_t size); +#endif + #ifdef HAVE_LIMITS_H #include <limits.h> #endif |