summaryrefslogtreecommitdiffstats
path: root/web/attachments/216525-check_dhcp-osx.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/216525-check_dhcp-osx.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/216525-check_dhcp-osx.patch')
-rw-r--r--web/attachments/216525-check_dhcp-osx.patch20
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;