# HG changeset patch # User mas01cr # Date 1256215864 0 # Node ID 828c1c4e25ccf576895bc44469176dbd8b29a8a1 # Parent 3e25f26b6a276e6847e9eb7f453d01f93b8706aa (probably) restore buildability on Cygwin Only probably because I don't have easy direct access to a Cygwin build environment yet; sadly, it doesn't install under Wine. I have inspected the output of gcc -dM -E foo.h for different compiler/OS combinations, though, and this should now be right. diff -r 3e25f26b6a27 -r 828c1c4e25cc lshlib.cpp --- a/lshlib.cpp Thu Oct 15 14:47:07 2009 +0000 +++ b/lshlib.cpp Thu Oct 22 12:51:04 2009 +0000 @@ -1112,7 +1112,7 @@ int dbfid; if ((dbfid = open (filename, O_RDWR|O_CREAT|O_EXCL, -#if defined(__CYGWIN__) || defined(WIN32) +#if defined(WIN32) _S_IREAD|_S_IWRITE #else S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH