[gnutls-help] Error using certtool with config file on Win32
Bruce Korb
bkorb at gnu.org
Wed Nov 18 22:25:33 CET 2015
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,
More information about the Gnutls-help
mailing list