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()
if(LIBC_TARGET_ARCHITECTURE_IS_RISCV32)
  list(APPEND TARGET_LLVMLIBC_REMOVED_ENTRYPOINTS
    libc.src.time.clock_settime
  )
endif()