summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-17 07:45:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:49 +0100
commit7c34f488278ba7513d3bf4ca9eb7867d5008c140 (patch)
tree86f0be87f74a2196d7a60ff0243a965c97877351 /source4/lib/replace/replace.h
parent7957ea99fe3b3ad639c981de2c611b0e287b12d1 (diff)
downloadsamba-7c34f488278ba7513d3bf4ca9eb7867d5008c140.tar.gz
samba-7c34f488278ba7513d3bf4ca9eb7867d5008c140.tar.bz2
samba-7c34f488278ba7513d3bf4ca9eb7867d5008c140.zip
r26495: Add defines for getifaddrs/freeifaddrs.
(This used to be commit c9e5a3078f7baa83743658d5648f0eefdeb05d2f)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index 973c68ee14..f8a89a7213 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -340,6 +340,16 @@ ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
/* prototype is in "system/network.h" */
#endif
+#ifndef HAVE_GETIFADDRS
+#define getifaddrs rep_getifaddrs
+/* prototype is in "system/network.h" */
+#endif
+
+#ifndef HAVE_FREEIFADDRS
+#define freeifaddrs rep_freeifaddrs
+/* prototype is in "system/network.h" */
+#endif
+
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif