[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ChangeLog support/socket.c
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnet ChangeLog support/socket.c |
Date: |
Sat, 25 Nov 2006 18:11:52 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnet
Changes by: Klaus Treichel <ktreichel> 06/11/25 18:11:52
Modified files:
. : ChangeLog
support : socket.c
Log message:
2006-11-25 Klaus Treichel <address@hidden>
* support/socket.c: Fix build where fcntl is not available.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3390&r2=1.3391
http://cvs.savannah.gnu.org/viewcvs/pnet/support/socket.c?cvsroot=dotgnu-pnet&r1=1.26&r2=1.27
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3390
retrieving revision 1.3391
diff -u -b -r1.3390 -r1.3391
--- ChangeLog 23 Nov 2006 11:07:58 -0000 1.3390
+++ ChangeLog 25 Nov 2006 18:11:52 -0000 1.3391
@@ -1,3 +1,7 @@
+2006-11-25 Klaus Treichel <address@hidden>
+
+ * support/socket.c: Fix build where fcntl is not available.
+
2006-11-23 Heiko Weiss <address@hidden>
* support/socket.c: fixed that socket gets closed if app was killed.
Index: support/socket.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/socket.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- support/socket.c 23 Nov 2006 11:07:58 -0000 1.26
+++ support/socket.c 25 Nov 2006 18:11:52 -0000 1.27
@@ -33,7 +33,9 @@
#define HAVE_SETSOCKOPT 1
#define HAVE_GETSOCKOPT 1
#else
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
@@ -426,7 +428,9 @@
}
iSocket = socket(domain, type, protocol);
+#ifdef HAVE_FCNTL
if( iSocket >= 0 ) fcntl( iSocket, F_SETFD, FD_CLOEXEC );
+#endif
return (ILSysIOHandle)(ILNativeInt)(iSocket);
}