Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 14 years ago
parent
commit
90df76f779
  1. 2
      ev_kqueue.c
  2. 5
      ev_poll.c
  3. 3115
      evdns.c
  4. 2
      import_libevent

2
ev_kqueue.c

@ -39,7 +39,7 @@ kqueue_change (EV_P_ int fd, int filter, int flags, int fflags)
{
struct kevent *ke;
array_needsize (kqueue_changes, kqueue_changemax, ++kqueue_changecnt, );
array_needsize (struct kevent, kqueue_changes, kqueue_changemax, ++kqueue_changecnt, );
ke = &kqueue_changes [kqueue_changecnt - 1];
memset (ke, 0, sizeof (struct kevent));

5
ev_poll.c

@ -46,14 +46,14 @@ poll_modify (EV_P_ int fd, int oev, int nev)
if (oev == nev)
return;
array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init);
array_needsize (int, pollidxs, pollidxmax, fd + 1, pollidx_init);
idx = pollidxs [fd];
if (idx < 0) /* need to allocate a new pollfd */
{
idx = pollcnt++;
array_needsize (polls, pollmax, pollcnt, );
array_needsize (struct pollfd, polls, pollmax, pollcnt, );
polls [idx].fd = fd;
}
@ -118,3 +118,4 @@ poll_destroy (EV_P)
ev_free (pollidxs);
ev_free (polls);
}

3115
evdns.c
File diff suppressed because it is too large
View File

2
import_libevent

@ -68,7 +68,7 @@ perl -ne '
s/\bepoll_sub.c\b//g;
s/\bevent-internal.h\b//g;
s/\bevsignal.h\b//g;
s/^(EXTRA_DIST\s*=\s*)/$1 ev.h ev_vars.h ev_wrap.h event_compat.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c /;
s/^(EXTRA_DIST\s*=\s*)/$1 ev.h ev_vars.h ev_wrap.h event_compat.h ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_win32.c /;
s/^(include_HEADERS\s*=\s*)/$1 ev.h event_compat.h /;
s/^(libevent_la_SOURCES\s*=\s*)/$1 ev.c /;
s/^(libevent_la_LIBADD\s*=\s*)/$1 -lm /;

Loading…
Cancel
Save