summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 18:33:49 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 18:33:49 (GMT)
commit3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85 (patch)
treeca0b09f674c25ad92a8b297f26463afa075452b7 /Utilities
parent09237c63c39b97947b44fc6850c7f6965d8a2dc0 (diff)
downloadCMake-3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85.zip
CMake-3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85.tar.gz
CMake-3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85.tar.bz2
COMP: Fix windows
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmtar/append.c2
-rw-r--r--Utilities/cmtar/libtar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c
index 4350745..5ad3593 100644
--- a/Utilities/cmtar/append.c
+++ b/Utilities/cmtar/append.c
@@ -231,7 +231,7 @@ tar_append_regfile(TAR *t, char *realname)
int i, j;
size_t size;
- filefd = open(realname, O_RDONLY);
+ filefd = open(realname, O_RDONLY | O_BINARY);
if (filefd == -1)
{
#ifdef DEBUG
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c
index 7454a5c..cdbe7a1 100644
--- a/Utilities/cmtar/libtar.c
+++ b/Utilities/cmtar/libtar.c
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
-#if !defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__)
#include <libtar/compat.h>
#include <io.h>
#else