blob: 3602a2903200247d8fb5020a4112f10c4cbf0473 (
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 2020-05-13 18:40:02 UTC
+++ third_party/usrsctp/BUILD.gn
@@ -121,11 +121,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",
|