From ef5dc55983b5786d602688a596ea349b0dfdc0c8 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 24 May 2007 15:51:01 +0000 Subject: 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) --- source4/lib/replace/replace.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/lib/replace/replace.h') 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 #endif -- cgit