support _BSD_SOURCE feature test macro
[musl] / include / net / if.h
index 00c763a..e862c7c 100644 (file)
@@ -21,7 +21,7 @@ void if_freenameindex (struct if_nameindex *);
 
 
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
 #include <sys/socket.h>