/*
- * $Id: comm.cc,v 1.294 1999/01/08 21:12:08 wessels Exp $
+ * $Id: comm.cc,v 1.295 1999/01/11 21:29:46 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
if (x < 0)
debug(5, 9) ("connect FD %d: %s\n", sock, xstrerror());
} else {
+#if defined(sony)
+ /* Makoto MATSUSHITA <matusita@ics.es.osaka-u.ac.jp> */
+ connect(sock, (struct sockaddr *) address, sizeof(*address));
+ if (errno == EINVAL) {
+ errlen = sizeof(err);
+ x = getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &errlen);
+ if (x >= 0)
+ errno = x;
+ }
+#else
errlen = sizeof(err);
x = getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &errlen);
if (x == 0)
*/
if (x < 0 && errno == EPIPE)
errno = ENOTCONN;
+#endif
#endif
}
if (errno == 0 || errno == EISCONN)