From 873fd1e7ffa0f6d2867d036469cf893a0677a3df Mon Sep 17 00:00:00 2001 From: Hadi Moshayedi Date: Thu, 12 Oct 2017 18:23:24 -0400 Subject: [PATCH] Fix compiling --without-libcurl. Previously was included even if compiled --without-libcurl. This can fail when libcurl headers are not there. This commit guards this include by checks for HAVE_LIBCURL. --- src/backend/distributed/utils/statistics_collection.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/distributed/utils/statistics_collection.c b/src/backend/distributed/utils/statistics_collection.c index d97beb22b..1f73771cb 100644 --- a/src/backend/distributed/utils/statistics_collection.c +++ b/src/backend/distributed/utils/statistics_collection.c @@ -10,6 +10,10 @@ #include "postgres.h" +bool EnableStatisticsCollection = true; /* send basic usage statistics to Citus */ + +#if HAVE_LIBCURL + #include #include @@ -21,10 +25,6 @@ #include "lib/stringinfo.h" #include "utils/json.h" -bool EnableStatisticsCollection = true; /* send basic usage statistics to Citus */ - -#if HAVE_LIBCURL - static uint64 NextPow2(uint64 n); static uint64 ClusterSize(List *distributedTableList); static bool SendHttpPostJsonRequest(const char *url, const char *postFields, long