aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-07-07 11:33:39 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-07-07 11:33:39 +0200
commita2505f049d48d8ff77159a382f46b3cf854c096d (patch)
tree70a75ccf4050ea44ed7b111ce93b6059c78632e4
parent1f4fd12845a2041df3f34f7a84d8012e747e327c (diff)
downloadmonitoring-plugins-a2505f049d48d8ff77159a382f46b3cf854c096d.tar.gz
plugins/netutils.h: Adjust UNIX_PATH_MAX for BSD
On at least FreeBSD, NetBSD, OpenBSD, DragonFly, and OS X, this is hard-coded at 104 bytes. Closes #1267.
-rw-r--r--plugins/netutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index c5aa18fc..c6fce901 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -40,8 +40,8 @@
#ifdef HAVE_SYS_UN_H
# include <sys/un.h>
# ifndef UNIX_PATH_MAX
- /* linux uses this, on sun it's hard-coded at 108 without a define */
-# define UNIX_PATH_MAX 108
+ /* linux uses this, on sun it's hard-coded at 108 without a define, on BSD at 104 */
+# define UNIX_PATH_MAX 104
# endif /* UNIX_PATH_MAX */
#endif /* HAVE_SYS_UN_H */