C++: double underscores are reserved
[awesomized/libmemcached] / CMake / _Include.cmake
index 6a5598d9235edae1ef476d3aa609fdd797ce15d8..c75c741f9a8eaa4a304fa2a81fd94d42780b551a 100644 (file)
@@ -115,33 +115,42 @@ configure_set(HAVE_FNV64_HASH ${ENABLE_HASH_FNV64})
 configure_set(HAVE_MURMUR_HASH ${ENABLE_HASH_MURMUR})
 configure_set(HAVE_HSIEH_HASH ${ENABLE_HASH_HSIEH})
 
-# most of the following checks are due to mingw or msvc; see gnulib
+check_include(alloca.h)
 check_include(arpa/inet.h)
 check_include(dlfcn.h)
+check_include(getopt.h)
+check_include(libgen.h)
 check_include(netdb.h)
+check_include(netinet/in.h)
+check_include(netinet/tcp.h)
 check_include(poll.h)
 check_include(strings.h)
+check_include(sys/poll.h)
 check_include(sys/socket.h)
 check_include(sys/time.h)
 check_include(sys/un.h)
 check_include(unistd.h)
 
-if(WIN32)
-    check_include(io.h)
-    check_include(winsock2.h)
-    check_include(ws2tcpip.h)
-endif()
-
 check_type(in_port_t netinet/in.h)
+check_type(pid_t sys/types.h)
+check_type(ssize_t sys/types.h)
+check_type("struct msghdr" sys/socket.h)
 
 check_cxx_symbol(abi::__cxa_demangle cxxabi.h)
+check_symbol(ERESTART errno.h)
 check_symbol(fcntl fcntl.h)
+check_symbol(gettimeofday sys/time.h)
 check_symbol(htonll arpa/inet.h)
+check_symbol(index strings.h)
 check_symbol(MSG_DONTWAIT sys/socket.h)
 check_symbol(MSG_MORE sys/socket.h)
 check_symbol(MSG_NOSIGNAL sys/socket.h)
 check_symbol(SO_RCVTIMEO sys/socket.h)
 check_symbol(SO_SNDTIMEO sys/socket.h)
+check_symbol(rand stdlib.h)
+check_symbol(random stdlib.h)
+check_symbol(realpath stdlib.h)
+check_symbol(sendmsg sys/socket.h)
 check_symbol(setenv stdlib.h)
 check_symbol(strerror_r string.h)
 check_c_source("
@@ -152,3 +161,11 @@ check_c_source("
         }"
         HAVE_STRERROR_R_CHAR_P
 )
+
+if(WIN32)
+    check_include(io.h)
+    check_include(winsock2.h)
+    check_include(ws2tcpip.h)
+
+    check_symbol(htonll winsock2.h)
+endif()