mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
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.
This commit is contained in:
parent
1f4fd12845
commit
a2505f049d
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue