fix includes
authorMichael Wallner <mike@php.net>
Thu, 3 Dec 2020 11:08:02 +0000 (12:08 +0100)
committerMichael Wallner <mike@php.net>
Thu, 3 Dec 2020 11:08:02 +0000 (12:08 +0100)
CMake/CheckThreads.cmake
src/bin/common/options.hpp

index 8c79c2dfaa85be9db89d2c473055c31d644f806c..ab746248be3130481c05ec54ff3217545a629dc0 100644 (file)
@@ -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")
index 7d2b3e38cf6b4612fb02919c1cf349c0b512bb5d..980ca38dc39ab8865a498002e98d6f334d4c2814 100644 (file)
 #include <string>
 #include <vector>
 
+#include "libmemcached/common.h"
+
 #ifdef HAVE_GETOPT_H
 #  include <getopt.h>
 #elif defined _MSC_VER
 #  include "win32/getopt.h"
 #endif
 
-#include "libmemcached/common.h"
-
 class client_options {
 public: