diff options
author | Tim Kientzle <kientzle@gmail.com> | 2009-06-26 23:48:20 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2009-06-26 23:48:20 -0400 |
commit | 15195503c7710997b8ecc3795ea8feadc05effdd (patch) | |
tree | f7baf98ae574579d58ce4972f4f212cfef058140 /libarchive/archive_read_open_fd.c | |
parent | 5eead7134fb90fb28fb1edaaf66e27b453fe5190 (diff) | |
download | libarchive-15195503c7710997b8ecc3795ea8feadc05effdd.tar.gz |
On Windows, set _O_BINARY on filehandles passed in from clients.
This should eliminate the need for clients to take special
measures to get correct binary handling.
SVN-Revision: 1187
Diffstat (limited to 'libarchive/archive_read_open_fd.c')
-rw-r--r-- | libarchive/archive_read_open_fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_open_fd.c b/libarchive/archive_read_open_fd.c index ed58c6c4..03a6bf62 100644 --- a/libarchive/archive_read_open_fd.c +++ b/libarchive/archive_read_open_fd.c @@ -96,7 +96,7 @@ archive_read_open_fd(struct archive *a, int fd, size_t block_size) } else mine->can_skip = 0; -#if defined(_WIN32_) +#if defined(_WIN32) _setmode(mine->fd, _O_BINARY); #endif |