COMP: Fix windows
This commit is contained in:
parent
09237c63c3
commit
3d7939b1c3
@ -231,7 +231,7 @@ tar_append_regfile(TAR *t, char *realname)
|
|||||||
int i, j;
|
int i, j;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
filefd = open(realname, O_RDONLY);
|
filefd = open(realname, O_RDONLY | O_BINARY);
|
||||||
if (filefd == -1)
|
if (filefd == -1)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#if !defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
#include <libtar/compat.h>
|
#include <libtar/compat.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user