From c10aa3259658f882424600f7ff5916a205bd3017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Thu, 12 Dec 2019 14:49:30 -0500 Subject: [PATCH] cpp: include config.h when necessary --- src/dht_proxy_server.cpp | 4 ++++ src/dhtrunner.cpp | 4 ++++ src/securedht.cpp | 3 +++ src/value.cpp | 4 ++++ tools/dhtnode.cpp | 3 +++ 5 files changed, 18 insertions(+) diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index 78bbd2cd..07b9f89c 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -18,6 +18,10 @@ * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "dht_proxy_server.h" #include "default_types.h" diff --git a/src/dhtrunner.cpp b/src/dhtrunner.cpp index f68e76ec..15633679 100644 --- a/src/dhtrunner.cpp +++ b/src/dhtrunner.cpp @@ -18,6 +18,10 @@ * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "dhtrunner.h" #include "securedht.h" #include "network_utils.h" diff --git a/src/securedht.cpp b/src/securedht.cpp index d117d561..18dd951e 100644 --- a/src/securedht.cpp +++ b/src/securedht.cpp @@ -17,6 +17,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "securedht.h" #include "rng.h" diff --git a/src/value.cpp b/src/value.cpp index 5a77f70c..0750a530 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -17,6 +17,10 @@ * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "value.h" #include "default_types.h" diff --git a/tools/dhtnode.cpp b/tools/dhtnode.cpp index 7b200b9b..85eb7be7 100644 --- a/tools/dhtnode.cpp +++ b/tools/dhtnode.cpp @@ -18,6 +18,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "tools_common.h" extern "C" {