summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-07 18:16:58 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-07 18:16:58 +0000
commite97831dd75f59483cca12b7cb397bdbc0e945cd4 (patch)
treef5ec6d49617faeeaaa45c0dc08887c6587330881 /net/socket
parent227b543c559f7d0ca172964494dce5b216f235ef (diff)
downloadchromium_src-e97831dd75f59483cca12b7cb397bdbc0e945cd4.zip
chromium_src-e97831dd75f59483cca12b7cb397bdbc0e945cd4.tar.gz
chromium_src-e97831dd75f59483cca12b7cb397bdbc0e945cd4.tar.bz2
Allow using system libevent instead of the bundled one.
Patch by Bernard Cafarelli <voyageur@gentoo.org> TEST=none BUG=22140 Review URL: http://codereview.chromium.org/524061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/tcp_client_socket_libevent.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc
index 1321d00..107a18b 100644
--- a/net/socket/tcp_client_socket_libevent.cc
+++ b/net/socket/tcp_client_socket_libevent.cc
@@ -16,8 +16,11 @@
#include "net/base/io_buffer.h"
#include "net/base/load_log.h"
#include "net/base/net_errors.h"
+#if defined(USE_SYSTEM_LIBEVENT)
+#include <event.h>
+#else
#include "third_party/libevent/event.h"
-
+#endif
namespace net {