See ChangeLog entry 2003-01-10 17:30 UTC-0500 David G. Holm <dholm@jsd-llc.com>
This commit is contained in:
@@ -8,6 +8,15 @@
|
||||
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2003-01-10 17:30 UTC-0500 David G. Holm <dholm@jsd-llc.com>
|
||||
* source/rtl/filesys.c
|
||||
! The MingW32 use of _LK_UNLOCK instead of _LK_UNLCK turned out to
|
||||
be a bug in a MingW32 that has since been corrected, so the fix
|
||||
has been reverted. Thanks go to Phil Krylov <phil@mail.ru> for
|
||||
pointing this out. In order to allow this to work with the buggy
|
||||
version of MingW32, I've added a #define _LK_UNLCK _LK_UNLOCK if
|
||||
compiling for __MINGW32__ and _LK_UNLCK is not defined.
|
||||
|
||||
2003-01-10 17:00 UTC-0500 David G. Holm <dholm@jsd-llc.com>
|
||||
* source/rdd/dbfcdx/dbfcdx1.c
|
||||
! hb_fsDelete takes a BYTE * parameter, not an unsigned char * one.
|
||||
|
||||
@@ -158,6 +158,9 @@
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#include <sys\locking.h>
|
||||
#define ftruncate _chsize
|
||||
#if defined(__MINGW32__) && !defined(_LK_UNLCK)
|
||||
#define _LK_UNLCK _LK_UNLOCK
|
||||
#endif
|
||||
#else
|
||||
#define ftruncate chsize
|
||||
#if !defined(HAVE_POSIX_IO)
|
||||
@@ -1378,7 +1381,7 @@ BOOL hb_fsLock ( FHANDLE hFileHandle, ULONG ulStart,
|
||||
break;
|
||||
|
||||
case FL_UNLOCK:
|
||||
bResult = ( _locking( hFileHandle, _LK_UNLOCK, ulLength ) == 0 );
|
||||
bResult = ( _locking( hFileHandle, _LK_UNLCK, ulLength ) == 0 );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user