You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
742 B

  1. --- a/configure.cmake
  2. +++ b/configure.cmake
  3. @@ -1107,9 +1107,12 @@ SET(CMAKE_EXTRA_INCLUDE_FILES)
  4. CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_INO)
  5. CHECK_STRUCT_HAS_MEMBER("struct dirent" d_namlen "dirent.h" STRUCT_DIRENT_HAS_D_NAMLEN)
  6. SET(SPRINTF_RETURNS_INT 1)
  7. -CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H)
  8. -IF(NOT HAVE_UCONTEXT_H)
  9. - CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H)
  10. +CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_HEADER)
  11. +IF(NOT HAVE_UCONTEXT_HEADER)
  12. + CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_HEADER)
  13. +ENDIF()
  14. +IF(HAVE_UCONTEXT_HEADER)
  15. + CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H)
  16. ENDIF()
  17. IF(HAVE_UCONTEXT_H)
  18. CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H)