postgresql cflags
authorGabor X Toth <*@tg-x.net>
Fri, 30 Sep 2016 15:07:38 +0000 (15:07 +0000)
committerGabor X Toth <*@tg-x.net>
Fri, 30 Sep 2016 15:07:38 +0000 (15:07 +0000)
configure.ac
src/include/gnunet_postgres_lib.h
src/include/gnunet_pq_lib.h

index 43876a7ecca13306698d5e5c7e0f1647121a040c..bd230860d46c8de04925b3032e1dbb2cacad8cae 100644 (file)
@@ -798,6 +798,7 @@ AC_SUBST(SQLITE_LDFLAGS)
 postgres=false
 AX_LIB_POSTGRESQL([])
 if test "$found_postgresql" = "yes"; then
+  CFLAGS="$CFLAGS $POSTGRESQL_CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
   AC_CHECK_HEADERS([libpq-fe.h],
     postgres=true)
index c208606816bca7ef606bf6788a81232cfbf5557a..66fc2a5df5b75c66ad9285eedb4511ac450148c1 100644 (file)
@@ -31,7 +31,7 @@
 #define GNUNET_POSTGRES_LIB_H
 
 #include "gnunet_util_lib.h"
-#include <postgresql/libpq-fe.h>
+#include <libpq-fe.h>
 
 #ifdef __cplusplus
 extern "C"
index 753310b28e547c6bc1a69d0d32b389b20baaa0d1..33a3e54254cfe2fa47995b5e3c76992b9e7262dd 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef GNUNET_PQ_LIB_H_
 #define GNUNET_PQ_LIB_H_
 
-#include <postgresql/libpq-fe.h>
+#include <libpq-fe.h>
 #include "gnunet_util_lib.h"