summaryrefslogtreecommitdiffstats
path: root/web/attachments/216525-check_dhcp-osx.patch
blob: 16c53194e9fa3174db5bf651d64a12e90c99bfa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- plugins-root/check_dhcp.c	28 Jan 2007 21:46:41 -0000	1.8
+++ plugins-root/check_dhcp.c	18 Feb 2007 08:05:59 -0000
@@ -65,7 +65,7 @@
 #include <linux/if_ether.h>
 #include <features.h>
 
-#elif defined (__bsd__)
+#elif defined (__bsd__) || defined (__APPLE__)
 
 #include <netinet/if_ether.h>
 #include <sys/param.h>
@@ -301,7 +301,7 @@
 
 	memcpy(&client_hardware_address[0],&ifr.ifr_hwaddr.sa_data,6);
 
-#elif defined(__bsd__)
+#elif defined(__bsd__) || defined(__APPLE__)
 						/* King 2004	see ACKNOWLEDGEMENTS */
 
         int                     mib[6], len;