summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 18:35:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 18:35:54 (GMT)
commitcbc6fee109f18676b7310cbd761a64757ff8e8a3 (patch)
treec9834d08835937329dfe661196f282f5b82d03a9 /Utilities
parent3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85 (diff)
downloadCMake-cbc6fee109f18676b7310cbd761a64757ff8e8a3.zip
CMake-cbc6fee109f18676b7310cbd761a64757ff8e8a3.tar.gz
CMake-cbc6fee109f18676b7310cbd761a64757ff8e8a3.tar.bz2
COMP: Only do O_BINARY on windows
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/append.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c
index 5ad3593..5007c62 100644
--- a/Utilities/cmtar/append.c
+++ b/Utilities/cmtar/append.c
@@ -231,7 +231,11 @@ tar_append_regfile(TAR *t, char *realname)
int i, j;
size_t size;
+#ifdef _WIN32
filefd = open(realname, O_RDONLY | O_BINARY);
+#else
+ filefd = open(realname, O_RDONLY);
+#endif
if (filefd == -1)
{
#ifdef DEBUG