blob: f2f553f78933c43473a5263ae53a70be7e4da3ad [file] [log] [blame] [edit]
include(CheckSymbolExists)
check_symbol_exists(SYS_faccessat2 "sys/syscall.h" HAVE_SYS_FACCESSAT2)
if(NOT HAVE_SYS_FACCESSAT2)
message(VERBOSE "unistd.faccessat excluded from build, faccessat2 syscall is not available on the system")
list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
libc.src.unistd.faccessat
)
endif()