1diff --git a/third_party/libevent/event-config.h b/third_party/libevent/event-config.h
2new file mode 100644
3index 0000000..78a4727
4--- /dev/null
5+++ b/third_party/libevent/event-config.h
6@@ -0,0 +1,16 @@
7+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
8+// Use of this source code is governed by a BSD-style license that can be
9+// found in the LICENSE file.
10+
11+// This file is Chromium-specific, and brings in the appropriate
12+// event-config.h depending on your platform.
13+
14+#if defined(__APPLE__)
15+#include "mac/event-config.h"
16+#elif defined(__linux__)
17+#include "linux/event-config.h"
18+#elif defined(__FreeBSD__)
19+#include "freebsd/event-config.h"
20+#else
21+#error generate event-config.h for your platform
22+#endif
23diff --git a/third_party/libevent/event.h b/third_party/libevent/event.h
24index cfa0fc3..72e9b8b 100644
25--- a/third_party/libevent/event.h
26+++ b/third_party/libevent/event.h
27@@ -159,7 +159,7 @@
28 extern "C" {
29 #endif
30 
31-#include <event-config.h>
32+#include "event-config.h"
33 #ifdef _EVENT_HAVE_SYS_TYPES_H
34 #include <sys/types.h>
35 #endif
36@@ -172,7 +172,7 @@ extern "C" {
37 #include <stdarg.h>
38 
39 /* For int types. */
40-#include <evutil.h>
41+#include "evutil.h"
42 
43 #ifdef WIN32
44 #define WIN32_LEAN_AND_MEAN
45diff --git a/third_party/libevent/evutil.h b/third_party/libevent/evutil.h
46index dcb0013..8b664b9 100644
47--- a/third_party/libevent/evutil.h
48+++ b/third_party/libevent/evutil.h
49@@ -38,7 +38,7 @@
50 extern "C" {
51 #endif
52 
53-#include <event-config.h>
54+#include "event-config.h"
55 #ifdef _EVENT_HAVE_SYS_TIME_H
56 #include <sys/time.h>
57 #endif
58