summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_third__party_libevent_BUILD.gn
blob: b02b2a11a816faf8b73c52f44e547edc3cdb437b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- base/third_party/libevent/BUILD.gn.orig	2018-01-04 21:05:38.000000000 +0100
+++ base/third_party/libevent/BUILD.gn	2018-01-06 01:02:53.058845000 +0100
@@ -43,13 +43,20 @@
       "mac/event-config.h",
     ]
     include_dirs = [ "mac" ]
-  } else if (is_linux) {
+  } else if (is_linux && !is_bsd) {
     sources += [
       "epoll.c",
       "linux/config.h",
       "linux/event-config.h",
     ]
     include_dirs = [ "linux" ]
+  } else if (is_bsd) {
+    sources += [ 
+      "kqueue.c",
+      "freebsd/config.h",
+      "freebsd/event-config.h",
+    ]
+    include_dirs = [ "freebsd" ]
   } else if (is_android) {
     sources += [
       "android/config.h",