From 467c977afcb71491963dbf5697e483a7fe73b85e Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 1 Dec 2015 15:27:14 -0300 Subject: [PATCH] Fix compilation without the GeoIP headers installed on the system --- src/utils/geo_lookup.cc | 2 ++ src/utils/https_client.h | 2 -- src/utils/ip_tree.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/geo_lookup.cc b/src/utils/geo_lookup.cc index bb10f739..beda0eee 100644 --- a/src/utils/geo_lookup.cc +++ b/src/utils/geo_lookup.cc @@ -24,7 +24,9 @@ #include "utils/geo_lookup.h" +#ifdef WITH_GEOIP #include +#endif // WITH_GEOIP namespace modsecurity { namespace Utils { diff --git a/src/utils/https_client.h b/src/utils/https_client.h index 800d6b1b..f965b082 100644 --- a/src/utils/https_client.h +++ b/src/utils/https_client.h @@ -22,8 +22,6 @@ #include #include -#include - #ifndef SRC_UTILS_HTTPS_CLIENT_H_ #define SRC_UTILS_HTTPS_CLIENT_H_ diff --git a/src/utils/ip_tree.h b/src/utils/ip_tree.h index ad6a9204..c15660c8 100644 --- a/src/utils/ip_tree.h +++ b/src/utils/ip_tree.h @@ -18,8 +18,6 @@ #include #include -#include - #ifndef SRC_UTILS_IP_TREE_H_ #define SRC_UTILS_IP_TREE_H_