aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-08-25 13:55:57 +0000
committerWerner Koch <[email protected]>2015-08-25 13:55:57 +0000
commit1e8d00260a97e0213559c74f687e478e7479a0ea (patch)
treece5d5b24171bb44e2c32fcaba42746c8e3c855e4
parentAdd option --lib-version to the gpg-error tool. (diff)
downloadlibgpg-error-1e8d00260a97e0213559c74f687e478e7479a0ea.tar.gz
libgpg-error-1e8d00260a97e0213559c74f687e478e7479a0ea.zip
w32: Make sure the setmode is called.
* src/estream.c (HAVE_DOSISH_SYSTEM): Define if needed. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/estream.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/estream.c b/src/estream.c
index 3c7d05f..1175ac8 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -92,8 +92,14 @@
#ifndef O_BINARY
-#define O_BINARY 0
+# define O_BINARY 0
#endif
+#ifndef HAVE_DOSISH_SYSTEM
+# ifdef HAVE_W32_SYSTEM
+# define HAVE_DOSISH_SYSTEM 1
+# endif
+#endif
+
#ifdef HAVE_W32_SYSTEM
# define S_IRGRP S_IRUSR