git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2a3da
)
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
author
Michael Adam
<obnox@samba.org>
Fri, 14 Mar 2008 07:52:16 +0000
(08:52 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 14 Mar 2008 08:04:25 +0000
(09:04 +0100)
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).
Michael
source/lib/replace/getifaddrs.m4
patch
|
blob
|
history
diff --git
a/source/lib/replace/getifaddrs.m4
b/source/lib/replace/getifaddrs.m4
index 6cca155de3721cc7dc540d42b2ed9530133bb6ec..c79367fe4ffcb9afe7477213a88dd4817f9c603d 100644
(file)
--- a/
source/lib/replace/getifaddrs.m4
+++ b/
source/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"
+