summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-third__party_usrsctp_BUILD.gn
blob: cd3a9cc294110fd48bee4cf03ecf8a1dafedd1cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- third_party/usrsctp/BUILD.gn.orig	2019-12-12 12:41:30 UTC
+++ third_party/usrsctp/BUILD.gn
@@ -116,11 +116,16 @@ static_library("usrsctp") {
     "-UINET6",
   ]
 
-  if (is_linux || is_android) {
+  if ((is_linux && !is_bsd) || is_android ) {
     defines += [
       "__Userspace_os_Linux",
       "_GNU_SOURCE",
     ]
+  } else if (is_bsd) {
+    defines += [
+      "__Userspace_os_FreeBSD",
+    ]
+    cflags += [ "-U__FreeBSD__" ]
   } else if (is_mac || is_ios) {
     defines += [
       "HAVE_SA_LEN",