- Posts: 905
- Thank you received: 174
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f8670d..acaa2e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,6 +57,15 @@ check_include_file("signal.h" HAVE_SIGNAL_H)
check_include_file("sys/uio.h" HAVE_SYS_UIO_H)
check_include_file("mcheck.h" HAVE_MCHECK_H)
+# Add the detected defines
+if(HAVE_SYS_TIME_H)
+ add_compile_definitions(HAVE_SYS_TIME_H)
+endif()
+
+if(HAVE_TIME_H)
+ add_compile_definitions(HAVE_TIME_H)
+endif()
+
# macro for checking for functions in libraries
macro(check_function_with_libx FUNCTION LIB VARIABLE)
check_function_exists(${FUNCTION} ${VARIABLE})
diff --git a/src/comm.h b/src/comm.h
index 9837c86..7d1ff1d 100644
Please Log in or Create an account to join the conversation.
tbaMUD © 2024