… | |
… | |
43 | return 0; |
43 | return 0; |
44 | } |
44 | } |
45 | ],ac_cv_preadwrite=yes,ac_cv_preadwrite=no)]) |
45 | ],ac_cv_preadwrite=yes,ac_cv_preadwrite=no)]) |
46 | test $ac_cv_preadwrite = yes && AC_DEFINE(HAVE_PREADWRITE, 1, pread(2) and pwrite(2) are available) |
46 | test $ac_cv_preadwrite = yes && AC_DEFINE(HAVE_PREADWRITE, 1, pread(2) and pwrite(2) are available) |
47 | |
47 | |
|
|
48 | AC_CACHE_CHECK(for readdir_r, ac_cv_readdir_r, [AC_LINK_IFELSE([ |
|
|
49 | #include <dirent.h> |
|
|
50 | int main(void) |
|
|
51 | { |
|
|
52 | DIR *dir = 0; |
|
|
53 | struct dirent ent, *eres; |
|
|
54 | int res = readdir_r (dir, &ent, &eres); |
|
|
55 | return 0; |
|
|
56 | } |
|
|
57 | ],ac_cv_readdir_r=yes,ac_cv_readdir_r=no)]) |
|
|
58 | test $ac_cv_readdir_r = yes && AC_DEFINE(HAVE_READDIR_R, 1, readdir_r is available) |
|
|
59 | |
48 | AC_CACHE_CHECK(for sendfile, ac_cv_sendfile, [AC_LINK_IFELSE([ |
60 | AC_CACHE_CHECK(for sendfile, ac_cv_sendfile, [AC_LINK_IFELSE([ |
49 | # include <sys/types.h> |
61 | # include <sys/types.h> |
50 | #if __linux |
62 | #if __linux |
51 | # include <sys/sendfile.h> |
63 | # include <sys/sendfile.h> |
52 | #elif __freebsd |
64 | #elif __freebsd |