diff options
Diffstat (limited to 'web/attachments/216525-check_dhcp-osx.patch')
-rw-r--r-- | web/attachments/216525-check_dhcp-osx.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web/attachments/216525-check_dhcp-osx.patch b/web/attachments/216525-check_dhcp-osx.patch new file mode 100644 index 0000000..16c5319 --- /dev/null +++ b/web/attachments/216525-check_dhcp-osx.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- plugins-root/check_dhcp.c 28 Jan 2007 21:46:41 -0000 1.8 | ||
2 | +++ plugins-root/check_dhcp.c 18 Feb 2007 08:05:59 -0000 | ||
3 | @@ -65,7 +65,7 @@ | ||
4 | #include <linux/if_ether.h> | ||
5 | #include <features.h> | ||
6 | |||
7 | -#elif defined (__bsd__) | ||
8 | +#elif defined (__bsd__) || defined (__APPLE__) | ||
9 | |||
10 | #include <netinet/if_ether.h> | ||
11 | #include <sys/param.h> | ||
12 | @@ -301,7 +301,7 @@ | ||
13 | |||
14 | memcpy(&client_hardware_address[0],&ifr.ifr_hwaddr.sa_data,6); | ||
15 | |||
16 | -#elif defined(__bsd__) | ||
17 | +#elif defined(__bsd__) || defined(__APPLE__) | ||
18 | /* King 2004 see ACKNOWLEDGEMENTS */ | ||
19 | |||
20 | int mib[6], len; | ||