blob: 59c1b658a8790a94038cade21d0eb6c84d0c37d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ag,v 1.1.1.1 2002/05/31 13:00:48 seb 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
|