summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-third__party_usrsctp_BUILD.gn
blob: 39b9266d5b93b4914ee6aa89adc4bb89087f52ac (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-03-15 06:26:39 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",