From a2505f049d48d8ff77159a382f46b3cf854c096d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 7 Jul 2014 11:33:39 +0200 Subject: 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. --- plugins/netutils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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 # 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 */ -- cgit v1.2.3-74-g34f1