]> git.pond.sub.org Git - empserver/commitdiff
(main,ef_open) [_WIN32]: switch the default file mode to
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 29 Dec 2004 23:40:04 +0000 (23:40 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 29 Dec 2004 23:40:04 +0000 (23:40 +0000)
binary to match POSIX.  Remove the now unneccessary ifdef for
the open.

src/util/files.c

index 6acee2fba9eacfcf6d89c04d4001b1e3d79cf4a9..f0ad84feb68122b81d081cae6dad265c1a66f1f9 100644 (file)
@@ -88,6 +88,10 @@ main(int argc, char *argv[])
     char *config_file = NULL;
     int force = 0;
 
+#if defined(_WIN32)
+    _fmode = _O_BINARY;
+#endif
+
     while ((opt = getopt(argc, argv, "e:f")) != EOF) {
        switch (opt) {
        case 'e':