e6f3806022a925b6d2ec139624d882efbb39f38e
[openwrt/svn-archive/archive.git] / mail / dovecot / patches / 001-configure_in.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -398,9 +398,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 @@ -559,7 +559,7 @@ AC_TRY_COMPILE([
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 @@ -568,6 +568,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;