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.

31 lines
935 B

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -504,9 +504,9 @@ have_ioloop=no
  4. if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then
  5. AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[
  6. - AC_TRY_RUN([
  7. + AC_TRY_LINK([
  8. #include <sys/epoll.h>
  9. -
  10. + ], [
  11. int main()
  12. {
  13. return epoll_create(5) < 1;
  14. @@ -675,7 +675,7 @@ fi
  15. dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
  16. dnl * It may also be broken in AIX.
  17. AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[
  18. - AC_TRY_RUN([
  19. + AC_TRY_LINK([
  20. #define _XOPEN_SOURCE 600
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. @@ -684,6 +684,7 @@ AC_CACHE_CHECK([whether posix_fallocate(
  24. #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
  25. possibly broken posix_fallocate
  26. #endif
  27. + ], [
  28. int main() {
  29. int fd = creat("conftest.temp", 0600);
  30. int ret;