summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-third__party_mesa_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-third__party_mesa_BUILD.gn')
-rw-r--r--www/iridium/files/patch-third__party_mesa_BUILD.gn23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/iridium/files/patch-third__party_mesa_BUILD.gn b/www/iridium/files/patch-third__party_mesa_BUILD.gn
new file mode 100644
index 000000000000..7fd1838dbff0
--- /dev/null
+++ b/www/iridium/files/patch-third__party_mesa_BUILD.gn
@@ -0,0 +1,23 @@
+--- third_party/mesa/BUILD.gn.orig 2017-04-19 19:06:52 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" ]
+ }
+