summaryrefslogtreecommitdiff
path: root/source4/lib/events
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-06-14 15:54:46 -0400
committerSimo Sorce <idra@samba.org>2008-06-14 15:55:14 -0400
commitcac6ea8c5e36009a90644b1ff9613a292bec9786 (patch)
treee7d6005d5c0428b238a13e5b40e91acf10f4ff97 /source4/lib/events
parent9a882558fe197562bb2c28cee68483bf0a440a2d (diff)
downloadsamba-cac6ea8c5e36009a90644b1ff9613a292bec9786.tar.gz
Fix events_aio
(This used to be commit d5525b79649ff75d6e9e853615949e4fbe9e0b6e)
Diffstat (limited to 'source4/lib/events')
-rw-r--r--source4/lib/events/events_aio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/events/events_aio.c b/source4/lib/events/events_aio.c
index 9d13ea96fdd..933ce26bf6b 100644
--- a/source4/lib/events/events_aio.c
+++ b/source4/lib/events/events_aio.c
@@ -31,7 +31,7 @@
*/
#include "system/filesys.h"
-#include "system/network.h"
+#include "replace.h"
#include "events.h"
#include "events_internal.h"
#include <sys/epoll.h>
@@ -138,7 +138,7 @@ static void epoll_add_event(struct aio_event_context *aio_ev, struct fd_event *f
/* if we don't want events yet, don't add an aio_event */
if (fde->flags == 0) return;
- ZERO_STRUCT(event);
+ memset(&event, 0, sizeof(event));
event.events = epoll_map_flags(fde->flags);
event.data.ptr = fde;
epoll_ctl(aio_ev->epoll_fd, EPOLL_CTL_ADD, fde->fd, &event);
@@ -479,7 +479,7 @@ static int aio_event_loop_once(struct event_context *ev)
struct timeval tval;
tval = common_event_loop_timer_delay(ev);
- if (timeval_is_zero(&tval)) {
+ if (ev_timeval_is_zero(&tval)) {
return 0;
}