]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Borland signature of _open has no mode
authorBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:20:38 +0000 (09:20 -0500)
committerBrad King <brad.king@kitware.com>
Wed, 11 Nov 2009 14:20:38 +0000 (09:20 -0500)
SVN-Revision: 1645

libarchive/archive_windows.c

index 78b7ce39617aff501a509905ed75fac3cdd4fab7..3297bbbeecf5ffb64d4655055d79bd16b7c85387 100644 (file)
@@ -640,7 +640,13 @@ __la_open(const char *path, int flags, ...)
                }
        }
        if (ws == NULL) {
+#if defined(__BORLANDC__)
+               /* Borland has no mode argument.
+                  TODO: Fix mode of new file.  */
+               r = _open(path, flags);
+#else
                r = _open(path, flags, pmode);
+#endif
                if (r < 0 && errno == EACCES && (flags & O_CREAT) != 0) {
                        /* simular other POSIX system action to pass a test */
                        attr = GetFileAttributesA(path);