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:
Holger Weiss 2014-07-07 11:33:39 +02:00
parent 1f4fd12845
commit a2505f049d

View file

@ -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 */