Procházet zdrojové kódy

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.
Holger Weiss před 12 roky
rodič
revize
a2505f049d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      plugins/netutils.h

+ 2 - 2
plugins/netutils.h

@@ -40,8 +40,8 @@
 #ifdef HAVE_SYS_UN_H
 #ifdef HAVE_SYS_UN_H
 # include <sys/un.h>
 # include <sys/un.h>
 # ifndef UNIX_PATH_MAX
 # 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 /* UNIX_PATH_MAX */
 #endif /* HAVE_SYS_UN_H */
 #endif /* HAVE_SYS_UN_H */