ports/www/iridium/files/patch-third__party_usrsctp_BUILD.gn
Carlos J. Puga Medina 66d46c9897 www/iridium: Update to 2019.04.73
Submitted by:	Matthias Wolf <matthias@rheinwolf.de>
2019-06-18 19:24:43 +00:00

20 lines
517 B
Text

--- third_party/usrsctp/BUILD.gn.orig 2019-03-11 22:01:18 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",