Browse Source

lib/binrpc modules/ctl utils/kamcmd : set UNIX_PATH_MAX to lowest common value

sockaddr_un.sun_path[] seem to be either 104 or 108 in following Unices:
104 - NetBSD, OpenBSD, FreeBSD, DragonFly BSD, MINIX, XNU(Apple OS X)
108 - illumos, Solaris, Linux
Mikko Lehto 9 years ago
parent
commit
bc783befbd
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lib/binrpc/binrpc_api.c
  2. 1 1
      modules/ctl/init_socks.c
  3. 1 1
      utils/kamcmd/kamcmd.c

+ 1 - 1
lib/binrpc/binrpc_api.c

@@ -53,7 +53,7 @@
 #define binrpc_free internal_free
 
 #ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX 108
+#define UNIX_PATH_MAX 104
 #endif
 
 #ifndef INT2STR_MAX_LEN

+ 1 - 1
modules/ctl/init_socks.c

@@ -37,7 +37,7 @@
 #include <fcntl.h>
 
 #ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX 108
+#define UNIX_PATH_MAX 104
 #endif
 
 

+ 1 - 1
utils/kamcmd/kamcmd.c

@@ -82,7 +82,7 @@
 
 
 #ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX 100
+#define UNIX_PATH_MAX 104
 #endif
 
 static char id[]="$Id$";