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

27 lines
547 B
Plaintext
Raw Normal View History

--- 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))
{