From: Francis Dupont Date: Fri, 19 Jun 2015 12:33:11 +0000 (+0200) Subject: [3882a] Updated server stuff at the exclusion of the extended version code itself X-Git-Tag: trac3908_base~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ab0e00ebddbd882b8c19130f349abe128b010e;p=thirdparty%2Fkea.git [3882a] Updated server stuff at the exclusion of the extended version code itself --- diff --git a/src/bin/d2/Makefile.am b/src/bin/d2/Makefile.am index 37646ed18b..28c3596795 100644 --- a/src/bin/d2/Makefile.am +++ b/src/bin/d2/Makefile.am @@ -3,6 +3,12 @@ SUBDIRS = . tests AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin AM_CPPFLAGS += $(BOOST_INCLUDES) +if HAVE_MYSQL +AM_CPPFLAGS += $(MYSQL_CPPFLAGS) +endif +if HAVE_PGSQL +AM_CPPFLAGS += $(PGSQL_CPPFLAGS) +endif AM_CXXFLAGS = $(KEA_CXXFLAGS) if USE_CLANGPP diff --git a/src/bin/d2/d_controller.cc b/src/bin/d2/d_controller.cc index fd2869defc..b55540d4c8 100644 --- a/src/bin/d2/d_controller.cc +++ b/src/bin/d2/d_controller.cc @@ -23,6 +23,14 @@ #include #include +#ifdef HAVE_MYSQL +#include +#endif +#ifdef HAVE_PGSQL +#include +#endif +#include + #include #include diff --git a/src/bin/dhcp4/Makefile.am b/src/bin/dhcp4/Makefile.am index a4bf19e8c0..249b9d99f7 100644 --- a/src/bin/dhcp4/Makefile.am +++ b/src/bin/dhcp4/Makefile.am @@ -3,6 +3,12 @@ SUBDIRS = . tests AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin AM_CPPFLAGS += $(BOOST_INCLUDES) +if HAVE_MYSQL +AM_CPPFLAGS += $(MYSQL_CPPFLAGS) +endif +if HAVE_PGSQL +AM_CPPFLAGS += $(PGSQL_CPPFLAGS) +endif AM_CXXFLAGS = $(KEA_CXXFLAGS) if USE_CLANGPP diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index 1c7c31a848..9c49af1e86 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -46,6 +46,14 @@ #include #include +#ifdef HAVE_MYSQL +#include +#endif +#ifdef HAVE_PGSQL +#include +#endif +#include + #include #include #include diff --git a/src/bin/dhcp6/Makefile.am b/src/bin/dhcp6/Makefile.am index a899787db7..e185cf76b1 100644 --- a/src/bin/dhcp6/Makefile.am +++ b/src/bin/dhcp6/Makefile.am @@ -4,6 +4,12 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc AM_CPPFLAGS += $(BOOST_INCLUDES) +if HAVE_MYSQL +AM_CPPFLAGS += $(MYSQL_CPPFLAGS) +endif +if HAVE_PGSQL +AM_CPPFLAGS += $(PGSQL_CPPFLAGS) +endif AM_CXXFLAGS = $(KEA_CXXFLAGS) if USE_CLANGPP diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index 7c9e5e2cec..e5414a9631 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -53,6 +53,14 @@ #include #include +#ifdef HAVE_MYSQL +#include +#endif +#ifdef HAVE_PGSQL +#include +#endif +#include + #include #include