diff options
author | Michael Adam <obnox@samba.org> | 2008-03-14 08:52:16 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-14 09:04:25 +0100 |
commit | 9d0b13bfcc44b7f886b42b25dd65d10c46fddb40 (patch) | |
tree | 38be86a9acf1a27ed7443f8f086ad0ed4d848f10 /source4/lib/replace | |
parent | 6a4928c630cfeee3300b5cdea5f47ab6ae05ae97 (diff) | |
download | samba-9d0b13bfcc44b7f886b42b25dd65d10c46fddb40.tar.gz samba-9d0b13bfcc44b7f886b42b25dd65d10c46fddb40.tar.bz2 samba-9d0b13bfcc44b7f886b42b25dd65d10c46fddb40.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
(This used to be commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r-- | source4/lib/replace/getifaddrs.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/getifaddrs.m4 b/source4/lib/replace/getifaddrs.m4 index 6cca155de3..c79367fe4f 100644 --- a/source4/lib/replace/getifaddrs.m4 +++ b/source4/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" + |