[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnet ChangeLog, 1.2756, 1.2757 configure.in, 1.151
From: |
Stephen Compall <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnet ChangeLog, 1.2756, 1.2757 configure.in, 1.151, 1.152 |
Date: |
Mon, 10 Nov 2003 13:25:06 +0000 |
Update of /cvsroot/dotgnu-pnet/pnet
In directory subversions:/tmp/cvs-serv22599
Modified Files:
ChangeLog configure.in
Log Message:
File locking support, for GNU et al at least.
Index: configure.in
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/configure.in,v
retrieving revision 1.151
retrieving revision 1.152
diff -C2 -d -r1.151 -r1.152
*** configure.in 10 Nov 2003 04:14:47 -0000 1.151
--- configure.in 10 Nov 2003 13:25:03 -0000 1.152
***************
*** 397,400 ****
--- 397,420 ----
AC_FUNC_ALLOCA
+ dnl check for F_SETLKW fcntl function.
+ AC_CACHE_CHECK(for F_SETLKW fcntl function, ac_cv_f_setlkw,
+ [AC_TRY_COMPILE(
+ [#ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif],
+ [int myvar =
F_SETLKW;],
+ ac_cv_f_setlkw=yes,
+ ac_cv_f_setlkw=no)])
+ dnl This is the version that uses AC_CHECK_DECL, which isn't
+ dnl available in autoconf-2.13. Unlock if/when we change.
+ dnl [AC_CHECK_DECL(F_SETLKW, ac_cv_f_setlkw=yes,
+ dnl ac_cv_f_setlkw=no,
+ dnl[#ifdef HAVE_FCNTL_H
+ dnl#include <fcntl.h>
+ dnl#endif])])
+ if test x"${ac_cv_f_setlkw}" = xyes; then
+ AC_DEFINE(HAVE_F_SETLKW, 1, [Defined if we have the F_SETLKW function
argument to fcntl])
+ fi
+
dnl Add the thread libraries to the end of the link line.
LIBS="$LIBS $THREADLIBS"
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.2756
retrieving revision 1.2757
diff -C2 -d -r1.2756 -r1.2757
*** ChangeLog 10 Nov 2003 06:34:23 -0000 1.2756
--- ChangeLog 10 Nov 2003 13:25:01 -0000 1.2757
***************
*** 1,3 ****
--- 1,10 ----
+ 2003-11-10 Stephen Compall <address@hidden>
+
+ * support/file.c (ILSysIOLock, ILSysIOUnlock): Exclusive file
+ locking support, only when fcntl and F_SETLKW are present.
+
+ * configure.in: Check for F_SETLKW in fcntl.h.
+
2003-11-10 Rhys Weatherley <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnet ChangeLog, 1.2756, 1.2757 configure.in, 1.151, 1.152,
Stephen Compall <address@hidden> <=