diff options
author | sakamoto <sakamoto@pkgsrc.org> | 1999-09-22 10:43:22 +0000 |
---|---|---|
committer | sakamoto <sakamoto@pkgsrc.org> | 1999-09-22 10:43:22 +0000 |
commit | 59f733bb67e784e89468176cda461873e1c33884 (patch) | |
tree | 0db0dd9bd620c257d25a13fc529811b2b56ceae7 /misc | |
parent | 156b8687b785d4cfa2ea918fe0397fc1250d7eca (diff) | |
download | pkgsrc-59f733bb67e784e89468176cda461873e1c33884.tar.gz |
Fix namelen of connect(), add #ifndef SUN_LEN - #endif,
Suggested by KAWAMOTO Yosihisa <kawamoto@es.osaka-u.ac.jp> and
Noriyuki Soda <soda@sra.co.jp>.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/freewnn-common/files/patch-sum | 3 | ||||
-rw-r--r-- | misc/freewnn-common/patches/patch-ag | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/misc/freewnn-common/files/patch-sum b/misc/freewnn-common/files/patch-sum index 2256fc7aa6a..17a40eca4f0 100644 --- a/misc/freewnn-common/files/patch-sum +++ b/misc/freewnn-common/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.2 1999/09/03 04:24:09 sakamoto Exp $ +$NetBSD: patch-sum,v 1.3 1999/09/22 10:43:22 sakamoto Exp $ MD5 (patch-aa) = 3363529ba220134fea834a0644be2f68 MD5 (patch-ab) = c6e17882427bfb85565a0309c3ea3843 @@ -6,3 +6,4 @@ MD5 (patch-ac) = fbe155f5f55d43a779778a37907c17be MD5 (patch-ad) = e9f90767f596c6bd19aea8deb29d8c45 MD5 (patch-ae) = 92f6fb369826fcc6b8dc2766d5b8e5dd MD5 (patch-af) = 9451325f12bc8a98aa2fff5267035292 +MD5 (patch-ag) = cfea7f02a6810812bc2350f2830aa505 diff --git a/misc/freewnn-common/patches/patch-ag b/misc/freewnn-common/patches/patch-ag new file mode 100644 index 00000000000..3cc2b39b32f --- /dev/null +++ b/misc/freewnn-common/patches/patch-ag @@ -0,0 +1,18 @@ +$NetBSD: patch-ag,v 1.1 1999/09/22 10:43:23 sakamoto Exp $ + +--- Wnn/jlib/js.c.orig Mon May 17 12:04:45 1999 ++++ Wnn/jlib/js.c Wed Sep 22 18:37:26 1999 +@@ -221,9 +221,9 @@ + return -1; + } +-#if !(defined(BSD) && (BSD >= 199306)) /* !4.4BSD-Lite */ +- if (connect(sd,(struct sockaddr *)&saddr,strlen(saddr.sun_path)+sizeof(saddr.sun_family)) == ERROR) { +-#else /* 4.4BSD-Lite */ ++ ++#if !defined(SUN_LEN) ++# define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) ++#endif + if (connect(sd,(struct sockaddr *)&saddr,SUN_LEN(&saddr)) == ERROR) { +-#endif /* 4.4BSD-Lite */ + + #if DEBUG |