From d327bbfbfdbe4495dc5625bef2b8dd0c90330f8f Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 24 Jan 2021 17:37:24 +0300 Subject: [PATCH] CMakeLists.txt: fix check_symbol_exists() for clock_gettime_nsec_np --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b2e74c5f..6835785fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -873,7 +873,7 @@ if(LIBC) else() set(HAVE_ALLOCA_H 1) set(HAVE_ALLOCA 1) - check_symbol_exists(clock_gettime_nsec_np HAVE_CLOCK_GETTIME_NSEC_NP) + check_symbol_exists(clock_gettime_nsec_np "time.h" HAVE_CLOCK_GETTIME_NSEC_NP) endif() check_struct_has_member("struct sigaction" "sa_sigaction" "signal.h" HAVE_SA_SIGACTION)