summaryrefslogtreecommitdiffstats
path: root/ftp/pavuk/files/patch-ab
blob: 13348e776bcc06555b59f931ea6f968b5ddeabf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- 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))
 	{
OpenPOWER on IntegriCloud