From 02ac6f7690bec66440b823cd576092cb0b745f4a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 11 Nov 2009 09:20:38 -0500 Subject: [PATCH] Borland signature of _open has no mode SVN-Revision: 1645 --- libarchive/archive_windows.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libarchive/archive_windows.c b/libarchive/archive_windows.c index 78b7ce396..3297bbbee 100644 --- a/libarchive/archive_windows.c +++ b/libarchive/archive_windows.c @@ -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); -- 2.47.3