summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-14 08:52:16 +0100
committerMichael Adam <obnox@samba.org>2008-03-14 11:32:54 +0100
commitfd6513fc4205f12c22f5130df65a1e8033284e67 (patch)
treec0dc7f380c4dfe35b9e8af84932364cfcd1187f8 /source3
parent27517ea5bbd0cb7fb0f1a1d88d8282380f14e717 (diff)
downloadsamba-fd6513fc4205f12c22f5130df65a1e8033284e67.tar.gz
samba-fd6513fc4205f12c22f5130df65a1e8033284e67.tar.bz2
samba-fd6513fc4205f12c22f5130df65a1e8033284e67.zip
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.). Michael (cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5) (This used to be commit ddd564e8bf2b115aa5dbcbebd4be30b749ad8752)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace/getifaddrs.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/replace/getifaddrs.m4 b/source3/lib/replace/getifaddrs.m4
index 6cca155de3..c79367fe4f 100644
--- a/source3/lib/replace/getifaddrs.m4
+++ b/source3/lib/replace/getifaddrs.m4
@@ -38,6 +38,8 @@ fi
#
old_LIBS=$LIBS
LIBS="$NSL_LIBS $SOCKET_LIBS"
+SAVE_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS -I$libreplacedir"
iface=no;
##################
# look for a method of finding the list of network interfaces
@@ -125,3 +127,5 @@ fi
fi
LIBS=$old_LIBS
+CPPFLAGS="$SAVE_CPPFLAGS"
+