diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 07:45:05 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-19 21:59:27 +0100 |
commit | 1caa9cbd9dd1449c00fa431e129e1d070f4aac80 (patch) | |
tree | f2ff2ca73cca5b56e128a39d9a744b2b4434131f /source3/lib/replace | |
parent | ea9ce8f9ac44867403673012cd0979f21cf50a27 (diff) | |
download | samba-1caa9cbd9dd1449c00fa431e129e1d070f4aac80.tar.gz samba-1caa9cbd9dd1449c00fa431e129e1d070f4aac80.tar.bz2 samba-1caa9cbd9dd1449c00fa431e129e1d070f4aac80.zip |
r26495: Add defines for getifaddrs/freeifaddrs.
(cherry picked from commit c9e5a3078f7baa83743658d5648f0eefdeb05d2f)
(This used to be commit f2f552106820d1a8f07bccc1a3ad9b45582c8b30)
Diffstat (limited to 'source3/lib/replace')
-rw-r--r-- | source3/lib/replace/replace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h index 1d1cbc2cd2..3f91544e97 100644 --- a/source3/lib/replace/replace.h +++ b/source3/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 |