commit 4438022f519cafe6d1e5f3852ad94b78ca5e9a74
parent 23454dab3936cc2ff8d443c1ffb09b3ac059279d
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 12 Jan 2016 15:03:36 +0100
Add additional include directories for compat functions + dependencies to avoid using relative path in includes
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -23,6 +23,10 @@ include(GNUInstallDirs)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_OPENBSD_SOURCE)
check_function_exists(strtonum HAVE_STRTONUM)
+# Additional include directories for compat functions + dependencies
+include_directories("compat")
+include_directories("deps/hll")
+
# GeoIP
find_path(GEOIP_INCLUDE_DIRS GeoIP.h)
find_library(GEOIP_LIBRARIES NAMES GeoIP REQUIRED)
diff --git a/src/logswan.c b/src/logswan.c
@@ -26,10 +26,10 @@
#include <unistd.h>
#ifndef HAVE_STRTONUM
-#include "../compat/strtonum.h"
+#include "strtonum.h"
#endif
-#include "../deps/hll/hll.h"
+#include "hll.h"
#include <GeoIP.h>