libreplace: fix standalone build on some systems.
authorMichael Adam <obnox@samba.org>
Wed, 27 Feb 2008 00:29:12 +0000 (01:29 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 27 Feb 2008 00:29:12 +0000 (01:29 +0100)
getifaddr tests include system/network.h, which does not
find getaddrinfo.h without "-I.".

Michael

source/lib/replace/configure.ac

index beeb77e15204a6d7bb7f0b22bfe3003d2218a06b..72d788ddccc5b7310c3ea3adef2a6b20651b3fe3 100644 (file)
@@ -3,6 +3,8 @@ AC_INIT(replace.c)
 AC_CONFIG_SRCDIR([replace.c])
 AC_CONFIG_HEADER(config.h)
 
+CFLAGS="$CFLAGS -I."
+
 AC_LIBREPLACE_ALL_CHECKS
 
 if test "$ac_cv_prog_gcc" = yes; then