From: Michael Wallner Date: Thu, 3 Dec 2020 11:08:02 +0000 (+0100) Subject: fix includes X-Git-Tag: 1.1.0-beta1~76 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4b584c02c679edd005cd2e542d2ff1d9dcb312b9;p=m6w6%2Flibmemcached fix includes --- diff --git a/CMake/CheckThreads.cmake b/CMake/CheckThreads.cmake index 8c79c2df..ab746248 100644 --- a/CMake/CheckThreads.cmake +++ b/CMake/CheckThreads.cmake @@ -2,3 +2,4 @@ configure_define(HAVE_PTHREAD_H) set(THREADS_PREFER_PTHREAD_FLAG ON) set(CMAKE_THREAD_PREFER_PTHREAD ON) find_package(Threads) +set(HAVE_PTHREAD_H ${CMAKE_HAVE_PTHREAD_H} CACHE INTERNAL "FindThreads found pthread.h") diff --git a/src/bin/common/options.hpp b/src/bin/common/options.hpp index 7d2b3e38..980ca38d 100644 --- a/src/bin/common/options.hpp +++ b/src/bin/common/options.hpp @@ -23,14 +23,14 @@ #include #include +#include "libmemcached/common.h" + #ifdef HAVE_GETOPT_H # include #elif defined _MSC_VER # include "win32/getopt.h" #endif -#include "libmemcached/common.h" - class client_options { public: