1999-05-05 14:03:29 +00:00
|
|
|
--- src/net.c.orig Tue May 4 13:20:43 1999
|
|
|
|
+++ src/net.c Tue May 4 13:22:13 1999
|
1999-04-22 08:01:58 +00:00
|
|
|
@@ -101,9 +101,9 @@
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
-
|
1998-12-16 22:37:40 +00:00
|
|
|
+#ifndef __FreeBSD__
|
1999-04-22 08:01:58 +00:00
|
|
|
fcntl(sock , F_SETFL , O_NONBLOCK);
|
|
|
|
-
|
1998-12-16 22:37:40 +00:00
|
|
|
+#endif
|
1999-04-22 08:01:58 +00:00
|
|
|
rv = connect(sock, (struct sockaddr*)&addr, sizeof(addr));
|
|
|
|
if (rv && (errno != EINPROGRESS) && (errno != EISCONN))
|
|
|
|
{
|
1999-05-05 14:03:29 +00:00
|
|
|
@@ -267,9 +267,9 @@
|
|
|
|
int rv;
|
1999-04-22 08:01:58 +00:00
|
|
|
|
1999-05-05 14:03:29 +00:00
|
|
|
p = sizeof(caller);
|
|
|
|
-
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
fcntl(sock , F_SETFL , O_NONBLOCK);
|
1999-04-22 08:01:58 +00:00
|
|
|
-
|
1998-12-16 22:37:40 +00:00
|
|
|
+#endif
|
1999-05-05 14:03:29 +00:00
|
|
|
rsock = accept(sock, (struct sockaddr*)&caller, &p);
|
|
|
|
if ((rsock < 0) && (errno != EWOULDBLOCK))
|
|
|
|
{
|