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)