From 8f7d68ee3eb04ba78edf5c90c8d3b4d64dc2f656 Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 7 Nov 2017 09:26:57 +0800 Subject: [PATCH] cmake: use correct syntax for CheckStructHasMember Correctly detect the dirent member d_type on systems that have it. --- cmake/ConfigureChecks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 86cbf0aca..b605ab46f 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -23,7 +23,7 @@ CHECK_FUNCTION_EXISTS(backtrace_symbols HAVE_BACKTRACE_SYMBOLS) CHECK_FUNCTION_EXISTS(clock_gettime HAVE_CLOCK_GETTIME) CHECK_FUNCTION_EXISTS(ctermid_r HAVE_CTERMID_R) CHECK_INCLUDE_FILES(curses.h HAVE_CURSES_H) -CHECK_STRUCT_HAS_MEMBER(dirent d_type dirent.h HAVE_STRUCT_DIRENT_D_TYPE) +CHECK_STRUCT_HAS_MEMBER("struct dirent" d_type dirent.h HAVE_STRUCT_DIRENT_D_TYPE) CHECK_FUNCTION_EXISTS(dirfd HAVE_DIRFD) CHECK_INCLUDE_FILES(execinfo.h HAVE_EXECINFO_H) CHECK_FUNCTION_EXISTS(flock HAVE_FLOCK)