1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/ftp/pavuk/files/patch-ab
Chris Piazza b8e020f661 Fix a typo in the makefile, it was doing ${MKDIR} share/... instead
of ${MKDIR} ${PREFIX}/share and  update to pl 18.
1999-08-05 04:03:44 +00:00

27 lines
547 B
Plaintext

--- src/net.c.orig Fri Jul 23 03:50:48 1999
+++ src/net.c Wed Aug 4 20:32:42 1999
@@ -106,9 +106,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))
{
@@ -296,9 +296,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))
{