From 3d7939b1c35e2a92fa8a6b0f6deee54d34f64d85 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 28 Dec 2005 13:33:49 -0500 Subject: COMP: Fix windows --- Utilities/cmtar/append.c | 2 +- Utilities/cmtar/libtar.c | 2 +- 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 #include #include -#if !defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) && !defined(__CYGWIN__) #include #include #else -- cgit v0.12