1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/ftp/pavuk/files/patch-ab
Seiichirou Hiraoka 6e127853a7 Update to 0.9pl11
PR: ports/11496
Submitted by:  cpiazza@home.net
1999-05-05 14:03:29 +00:00

27 lines
547 B
Plaintext

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