aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-11-13 17:19:22 +0000
committerDavid Shaw <[email protected]>2002-11-13 17:19:22 +0000
commit7c3eee80ba05a6843fda2c848422d1da04946267 (patch)
tree8fe76ab69a4379a1fda24d93e023ff4653d02799 /g10/tdbio.c
parent* mk-w32-dist: Don't use iconv for pl.po. From Werner on stable branch. (diff)
downloadgnupg-7c3eee80ba05a6843fda2c848422d1da04946267.tar.gz
gnupg-7c3eee80ba05a6843fda2c848422d1da04946267.zip
* exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32; we don't need
it here as it behaves more like a Posix system. From Werner on stable branch. * passphrase.c (agent_get_passphrase): Ditto. From Werner on stable branch. * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. From Werner on stable branch. * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from the registry. From Werner on stable branch.
Diffstat (limited to '')
-rw-r--r--g10/tdbio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 6da1021cd..c928b76ec 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -39,11 +39,11 @@
#include "trustdb.h"
#include "tdbio.h"
-#if defined(HAVE_DOSISH_SYSTEM) && !defined(__CYGWIN32__)
+#if defined(HAVE_DOSISH_SYSTEM)
#define ftruncate chsize
#endif
-#ifdef HAVE_DOSISH_SYSTEM
+#if defined(HAVE_DOSISH_SYSTEM) || defined(__CYGWIN__)
#define MY_O_BINARY O_BINARY
#else
#define MY_O_BINARY 0