1999-04-22 08:01:58 +00:00
|
|
|
--- src/net.c.orig Sun Apr 18 06:53:46 1999
|
|
|
|
+++ src/net.c Wed Apr 21 22:44:24 1999
|
|
|
|
@@ -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))
|
|
|
|
{
|
|
|
|
@@ -121,8 +121,8 @@
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef GTK_FACE
|
|
|
|
- cfg.gtk.inid = gtk_timeout_add(cfg.ctimeout * 60000 ,
|
|
|
|
- (GtkFunction)TOut , NULL);
|
|
|
|
+ cfg.gtk.inid = cfg.ctimeout ? gtk_timeout_add(cfg.ctimeout * 60000 ,
|
|
|
|
+ (GtkFunction)TOut , NULL) : 0;
|
|
|
|
#endif
|
|
|
|
|
1998-12-16 22:37:40 +00:00
|
|
|
|
1999-04-22 08:01:58 +00:00
|
|
|
@@ -261,8 +261,9 @@
|
|
|
|
#ifdef I_FACE
|
|
|
|
if (cfg.xi_face)
|
|
|
|
{
|
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
|
|
|
rsock = accept(sock, (struct sockaddr*)&caller, &p);
|
|
|
|
if ((rsock < 0) && (errno != EWOULDBLOCK))
|
|
|
|
{
|