check for sys/types.h
@@ -34,6 +34,7 @@ check_include_files(stdarg.h HAVE_STDARG_PROTOTYPES)
check_include_files(sys/tree.h HAVE_SYS_TREE)
check_include_files(sys/queue.h HAVE_SYS_QUEUE)
check_include_files(sys/un.h HAVE_SYS_UN)
+check_include_files(sys/types.h HAVE_SYS_TYPES_H)
check_type_size("int" SIZEOF_INT)
check_type_size("long" SIZEOF_LONG)
@@ -126,6 +127,10 @@ if(has_c99)
target_compile_definitions(evhtp PUBLIC EVHTP_HAS_C99)
endif()
+if (HAVE_SYS_TYPES_H)
+ target_compile_definitions(evhtp PUBLIC EVHTP_HAS_SYS_TYPES)
+endif()
+
if(NOT HAVE_SYS_TREE)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/compat/sys/tree.h.in
