On 11/17/15 06:05, Jörg Weinhardt wrote:
Hello Nikos,

I think I've mentioned that I am not a Windows fan.
Anyway, the next release will have this:

diff --git a/autoopts/text_mmap.c b/autoopts/text_mmap.c
index 07c0bf1..23c8658 100644
--- a/autoopts/text_mmap.c
+++ b/autoopts/text_mmap.c
@@ -185,7 +185,11 @@ validate_mmap(char const * fname, int prot, int flag
s, tmap_info_t * mapinfo)
          *  then our updates will show in the file, so we must open with
          *  write access.
          */
-        int o_flag = FILE_WRITABLE(prot, flags) ? O_RDWR : O_RDONLY;
+        int o_flag =
+#ifdef _WIN32
+            O_BINARY |
+#endif
+            FILE_WRITABLE(prot, flags) ? O_RDWR : O_RDONLY;

         /*
          *  If you're not sharing the file and you are writing to it,


_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help

Reply via email to