summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-10 12:09:06 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:42:47 +0100
commita3e5710eda2e9fc7ee9dce1e9082dbf03f96faeb (patch)
tree5a229ae79dcb3dc57774906b72dc90d870674ad3 /source4/lib/replace/system
parent6876d2613da8e579146040babd33e71fc1889d46 (diff)
downloadsamba-a3e5710eda2e9fc7ee9dce1e9082dbf03f96faeb.tar.gz
samba-a3e5710eda2e9fc7ee9dce1e9082dbf03f96faeb.tar.bz2
samba-a3e5710eda2e9fc7ee9dce1e9082dbf03f96faeb.zip
r25602: don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected code and we endup with a missing 'swrap_close' while linking metze (This used to be commit 507d5ca7d994f0771dbb66e61d2d22e391508658)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index 02942f9a44..8b911cf7d3 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -90,8 +90,18 @@
#endif
#ifdef REPLACE_INET_NTOA
+/* define is in "replace.h" */
char *rep_inet_ntoa(struct in_addr ip);
-#define inet_ntoa rep_inet_ntoa
+#endif
+
+#ifndef HAVE_INET_PTON
+/* define is in "replace.h" */
+int rep_inet_pton(int af, const char *src, void *dst);
+#endif
+
+#ifndef HAVE_INET_NTOP
+/* define is in "replace.h" */
+const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size);
#endif
/*