summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-14 08:49:34 +0100
committerMichael Adam <obnox@samba.org>2008-03-14 09:02:36 +0100
commitfe096dd31336639a478a9f05cb3d790c2c31af47 (patch)
tree84f992e480d888d5b0d151a11320f9376325b2d4 /source4/lib/replace/replace.h
parentde9b3af624833be8f5c3520d5ac99fba14b8032f (diff)
downloadsamba-fe096dd31336639a478a9f05cb3d790c2c31af47.tar.gz
samba-fe096dd31336639a478a9f05cb3d790c2c31af47.tar.bz2
samba-fe096dd31336639a478a9f05cb3d790c2c31af47.zip
libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation of rep_getaddrinfo(). Michael (This used to be commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index 0d16f4ffd0..00c8230e6b 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -340,6 +340,11 @@ ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
/* prototype is in "system/network.h" */
#endif
+#ifndef HAVE_INET_ATON
+#define inet_aton rep_inet_aton
+/* prototype is in "system/network.h" */
+#endif
+
#ifndef HAVE_CONNECT
#define connect rep_connect
/* prototype is in "system/network.h" */