Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/libevent/devpoll.c

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libevent/devpoll.c
diff --git a/third_party/libevent/devpoll.c b/third_party/libevent/devpoll.c
index 513065ef73e87c3ba9a51149341dd13b48bd6335..2d34ae3400ce533174a3ad742135ae846a6c2fd5 100644
--- a/third_party/libevent/devpoll.c
+++ b/third_party/libevent/devpoll.c
@@ -33,7 +33,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
-#include <sys/_time.h>
+#include <sys/_libevent_time.h>
#endif
#include <sys/queue.h>
#include <sys/devpoll.h>
@@ -75,7 +75,7 @@ static int devpoll_del (void *, struct event *);
static int devpoll_dispatch (struct event_base *, void *, struct timeval *);
static void devpoll_dealloc (struct event_base *, void *);
-struct eventop devpollops = {
+const struct eventop devpollops = {
"devpoll",
devpoll_init,
devpoll_add,
@@ -131,7 +131,7 @@ devpoll_init(struct event_base *base)
struct devpollop *devpollop;
/* Disable devpoll when this environment variable is set */
- if (getenv("EVENT_NODEVPOLL"))
+ if (evutil_getenv("EVENT_NODEVPOLL"))
return (NULL);
if (!(devpollop = calloc(1, sizeof(struct devpollop))))

Powered by Google App Engine
This is Rietveld 408576698