Fix to make it work for local Unix domain sockets (no JSERVER env variable
set, for example).
This commit is contained in:
parent
8e520bccaf
commit
bede7d81a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1082
2 changed files with 22 additions and 0 deletions
11
japanese/FreeWnn-lib/files/patch-ab
Normal file
11
japanese/FreeWnn-lib/files/patch-ab
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ./Wnn/jlib/js.c.org Thu Aug 18 18:30:48 1994
|
||||
+++ ./Wnn/jlib/js.c Fri Mar 3 05:20:31 1995
|
||||
@@ -221,7 +221,7 @@
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
- if (connect(sd,(caddr_t)&saddr,strlen(saddr.sun_path)+sizeof(saddr.sun_family)) == ERROR) {
|
||||
+ if (connect(sd,(caddr_t)&saddr,SUN_LEN(&saddr)) == ERROR) {
|
||||
|
||||
#if DEBUG
|
||||
xerror("jslib:Can't connect socket.\n");
|
11
japanese/FreeWnn-server/files/patch-ab
Normal file
11
japanese/FreeWnn-server/files/patch-ab
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ./Wnn/jlib/js.c.org Thu Aug 18 18:30:48 1994
|
||||
+++ ./Wnn/jlib/js.c Fri Mar 3 05:20:31 1995
|
||||
@@ -221,7 +221,7 @@
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
- if (connect(sd,(caddr_t)&saddr,strlen(saddr.sun_path)+sizeof(saddr.sun_family)) == ERROR) {
|
||||
+ if (connect(sd,(caddr_t)&saddr,SUN_LEN(&saddr)) == ERROR) {
|
||||
|
||||
#if DEBUG
|
||||
xerror("jslib:Can't connect socket.\n");
|
Loading…
Reference in a new issue