… | |
… | |
218 | return 0; |
218 | return 0; |
219 | } |
219 | } |
220 | ]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) |
220 | ]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) |
221 | test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) |
221 | test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) |
222 | |
222 | |
|
|
223 | AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
224 | #include <sys/eventfd.h> |
|
|
225 | int res; |
|
|
226 | int main (void) |
|
|
227 | { |
|
|
228 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
229 | return 0; |
|
|
230 | } |
|
|
231 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
|
|
232 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
|
|
233 | |
223 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
234 | AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
224 | #include <unistd.h> |
235 | #include <unistd.h> |
225 | #include <sys/syscall.h> |
236 | #include <sys/syscall.h> |
226 | #include <linux/fs.h> |
237 | #include <linux/fs.h> |
227 | int res; |
238 | int res; |