diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-05-14 00:57:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:21 -0500 |
commit | ecc54f900fa6aaf1b97ef85b1101cf7badf33cec (patch) | |
tree | 4985d6817c5b8e052fb4e0a3946a638697b602a0 /source4/lib/events/libevents.m4 | |
parent | bc02bba4499b7f6c78dc5db0610fe4f4d238829a (diff) | |
download | samba-ecc54f900fa6aaf1b97ef85b1101cf7badf33cec.tar.gz samba-ecc54f900fa6aaf1b97ef85b1101cf7badf33cec.tar.bz2 samba-ecc54f900fa6aaf1b97ef85b1101cf7badf33cec.zip |
r22830: merged the latest lib/events updates from ctdb to Samba4. This
includes a new EVENT_FD_AUTOCLOSE flag that prevents race conditions
where code using fd events might close a fd before releasing the
struct fd_event. That causes headaches for epoll.
(This used to be commit f1ad216de13b154a1f8747a44b0970dcc47a784a)
Diffstat (limited to 'source4/lib/events/libevents.m4')
-rw-r--r-- | source4/lib/events/libevents.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/events/libevents.m4 b/source4/lib/events/libevents.m4 new file mode 100644 index 0000000000..99a47dcc54 --- /dev/null +++ b/source4/lib/events/libevents.m4 @@ -0,0 +1,11 @@ +EVENTS_OBJ="lib/events/events.o lib/events/events_select.o lib/events/events_signal.o lib/events/events_timed.o lib/events/events_standard.o" + +AC_CHECK_HEADERS(sys/epoll.h) +AC_CHECK_FUNCS(epoll_create) + +if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes"; then + EVENTS_OBJ="$EVENTS_OBJ lib/events/events_epoll.o" + AC_DEFINE(HAVE_EVENTS_EPOLL, 1, [Whether epoll available]) +fi + +AC_SUBST(EVENTS_OBJ) |