ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.28 by root, Fri Sep 22 05:20:39 2017 UTC vs.
Revision 1.31 by root, Tue Feb 20 05:23:47 2018 UTC

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)])
221test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) 221test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available)
222 222
223AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
224#include <sys/eventfd.h>
225int res;
226int main (void)
227{
228 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
229 return 0;
230}
231]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)])
232test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available)
233
234AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
235#include <sys/timerfd.h>
236int res;
237int main (void)
238{
239 struct itimerspec its;
240 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
241 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
242 res = timerfd_gettime (res, &its);
243 return 0;
244}
245]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)])
246test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available)
247
223AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 248AC_CACHE_CHECK(for renameat2, ac_cv_renameat2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
224#include <unistd.h> 249#include <unistd.h>
225#include <sys/syscall.h> 250#include <sys/syscall.h>
226#include <linux/fs.h> 251#include <linux/fs.h>
227int res; 252int res;
245 return 0; 270 return 0;
246} 271}
247]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) 272]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)])
248test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available) 273test $ac_cv_copy_file_range = yes && AC_DEFINE(HAVE_COPY_FILE_RANGE, 1, copy_file_range(2) is available)
249 274
275AC_CACHE_CHECK(for posix_close, ac_cv_posix_close, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
276#include <unistd.h>
277int res;
278int main (void)
279{
280 res = posix_close (0, 0); /* we do not need any flags */
281 return 0;
282}
283]])],ac_cv_posix_close=yes,ac_cv_posix_close=no)])
284test $ac_cv_posix_close = yes && AC_DEFINE(HAVE_POSIX_CLOSE, 1, posix_close(2) is available)
285

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines