summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_mesa_BUILD.gn
blob: 9ba3b1f30143d25b8144d20837b8d30327c5c44d (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
--- third_party/mesa/BUILD.gn.orig	2017-01-26 00:49:30 UTC
+++ third_party/mesa/BUILD.gn
@@ -90,6 +90,10 @@ config("mesa_internal_config") {
     defines += [ "_GNU_SOURCE" ]
   }
 
+  if (is_bsd) {
+    defines += [ "_BSD_SOURCE" ]
+  }
+
   if (is_win) {
     defines += [
       # Generated files use const only if __cplusplus or __STDC__ is defined.
@@ -757,7 +761,8 @@ loadable_module("osmesa") {
   ]
 
   # Required for the allocator implementation, which is not used on Mac.
-  if (!is_mac) {
+  # For BSD, there's no poing to include everything.
+  if (!is_mac && !is_bsd) {
     deps += [ "//base" ]
   }