summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-02 15:51:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-02 15:51:29 (GMT)
commitca73562e5470e9c9c43c018ff73e9b920c7feed5 (patch)
tree0a8bd716a2ad224ce3b64fc9c9d725a21017efdc /Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
parentff0ff689671d603ee3487e87bdc2b3ea03312967 (diff)
downloadCMake-ca73562e5470e9c9c43c018ff73e9b920c7feed5.zip
CMake-ca73562e5470e9c9c43c018ff73e9b920c7feed5.tar.gz
CMake-ca73562e5470e9c9c43c018ff73e9b920c7feed5.tar.bz2
borland builds, but still has some link errors
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_read_open_filename.c')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read_open_filename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
index bb681e5..6c4dcf7 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
@@ -99,7 +99,7 @@ archive_read_open_filename(struct archive *a, const char *filename,
*/
filename = ""; /* Normalize NULL to "" */
fd = 0;
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__BORLANDC__)
setmode(0, O_BINARY);
#elif defined(_WIN32)
_setmode(0, _O_BINARY);