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

Unified Diff: net/base/listen_socket.cc

Issue 524061: Allow using system libevent instead of the bundled one. (Closed)
Patch Set: nitfixing Created 10 years, 11 months 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: net/base/listen_socket.cc
diff --git a/net/base/listen_socket.cc b/net/base/listen_socket.cc
index fd099b7e401e28cc5534c07bdc974b513b0940e6..88e95922744084b5661721a7b37c74af5e0d2867 100644
--- a/net/base/listen_socket.cc
+++ b/net/base/listen_socket.cc
@@ -13,8 +13,12 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include "net/base/net_errors.h"
+#if defined(USE_SYSTEM_LIBEVENT)
+#include <event.h>
+#else
#include "third_party/libevent/event.h"
#endif
+#endif
#include "base/eintr_wrapper.h"
#include "net/base/net_util.h"

Powered by Google App Engine
This is Rietveld 408576698