blob: cc9ff01dff6b5ef9fc5980f7de12980f619e23be (
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-04-08 08:19:10 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",
|