diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-07-07 11:33:39 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-07-07 11:33:39 +0200 |
commit | a2505f049d48d8ff77159a382f46b3cf854c096d (patch) | |
tree | 70a75ccf4050ea44ed7b111ce93b6059c78632e4 /plugins | |
parent | 1f4fd12845a2041df3f34f7a84d8012e747e327c (diff) | |
download | monitoring-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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/netutils.h | 4 |
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 @@ | |||
40 | #ifdef HAVE_SYS_UN_H | 40 | #ifdef HAVE_SYS_UN_H |
41 | # include <sys/un.h> | 41 | # include <sys/un.h> |
42 | # ifndef UNIX_PATH_MAX | 42 | # ifndef UNIX_PATH_MAX |
43 | /* linux uses this, on sun it's hard-coded at 108 without a define */ | 43 | /* linux uses this, on sun it's hard-coded at 108 without a define, on BSD at 104 */ |
44 | # define UNIX_PATH_MAX 108 | 44 | # define UNIX_PATH_MAX 104 |
45 | # endif /* UNIX_PATH_MAX */ | 45 | # endif /* UNIX_PATH_MAX */ |
46 | #endif /* HAVE_SYS_UN_H */ | 46 | #endif /* HAVE_SYS_UN_H */ |
47 | 47 | ||