aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
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