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