summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_usrsctp_BUILD.gn
blob: 813dff51f54ba4396c12f7768e877606dcea91f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- third_party/usrsctp/BUILD.gn.orig	2017-04-19 19:06:53 UTC
+++ third_party/usrsctp/BUILD.gn
@@ -112,6 +112,12 @@ static_library("usrsctp") {
       "__Userspace_os_Linux",
       "_GNU_SOURCE",
     ]
+  } else if (is_bsd) {
+    # For now, freebsd hard coding, differentiate different bsd is a plan
+    defines += [
+      "__Userspace_os_FreeBSD",
+    ]
+    cflags += [ "-U__FreeBSD__" ]
   } else if (is_mac || is_ios) {
     defines += [
       "HAVE_SA_LEN",