diff --git a/CMakeLists.txt b/CMakeLists.txt index eda1b79b234..1b10722ec05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,6 +240,7 @@ check_symbol_exists(SO_PEERCRED "sys/socket.h" TS_HAS_SO_PEERCRED) if(TS_NO_USE_TLS13) set(TS_USE_TLS13 FALSE CACHE) endif() +check_symbol_exists(clock_gettime time.h HAVE_CLOCK_GETTIME) check_symbol_exists(epoll_create "sys/epoll.h" TS_USE_EPOLL) check_symbol_exists(kqueue "sys/event.h" TS_USE_KQUEUE) set(CMAKE_REQUIRED_LIBRARIES uring) diff --git a/include/tscore/ink_config.h.cmake.in b/include/tscore/ink_config.h.cmake.in index 3da0258e685..25b74ef8095 100644 --- a/include/tscore/ink_config.h.cmake.in +++ b/include/tscore/ink_config.h.cmake.in @@ -33,6 +33,7 @@ #define BUILD_NUMBER "@BUILD_NUMBER@" #cmakedefine HAVE_BROTLI_ENCODE_H 1 +#cmakedefine HAVE_CLOCK_GETTIME 1 #cmakedefine HAVE_DLFCN_H 1 #cmakedefine HAVE_FLOAT_H 1 #cmakedefine HAVE_LZMA_H 1