$OpenBSD: patch-src_3rdparty_chromium_third_party_usrsctp_BUILD_gn,v 1.2 2021/01/19 06:16:35 rsadowski Exp $

Index: src/3rdparty/chromium/third_party/usrsctp/BUILD.gn
--- src/3rdparty/chromium/third_party/usrsctp/BUILD.gn.orig
+++ src/3rdparty/chromium/third_party/usrsctp/BUILD.gn
@@ -121,9 +121,14 @@ static_library("usrsctp") {
     "-UINET6",
   ]
 
-  if (is_linux || is_android) {
+  if ((is_linux && !is_openbsd) || is_android) {
     defines += [
       "__Userspace_os_Linux",
+      "_GNU_SOURCE",
+    ]
+  } else if (is_openbsd) {
+    defines += [
+      "__Userspace_os_OpenBSD",
       "_GNU_SOURCE",
     ]
   } else if (is_mac || is_ios) {
