]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Wrap _BSD_SOURCE in a __linux__ define.
authorRoy Marples <roy@marples.name>
Fri, 9 Nov 2007 13:43:36 +0000 (13:43 +0000)
committerRoy Marples <roy@marples.name>
Fri, 9 Nov 2007 13:43:36 +0000 (13:43 +0000)
socket.c

index 3c8a33217a5151b936a01426d22789600965b055..a769a4401c80f14bb7d6ec079b82e440e787bfe4 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -5,7 +5,9 @@
  * Distributed under the terms of the GNU General Public License v2
  */
 
+#ifdef __linux__
 #define _BSD_SOURCE
+#endif
 
 #include <sys/types.h>
 #include <sys/ioctl.h>