COMP: Only do O_BINARY on windows
This commit is contained in:
parent
3d7939b1c3
commit
cbc6fee109
|
@ -231,7 +231,11 @@ tar_append_regfile(TAR *t, char *realname)
|
||||||
int i, j;
|
int i, j;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
filefd = open(realname, O_RDONLY | O_BINARY);
|
filefd = open(realname, O_RDONLY | O_BINARY);
|
||||||
|
#else
|
||||||
|
filefd = open(realname, O_RDONLY);
|
||||||
|
#endif
|
||||||
if (filefd == -1)
|
if (filefd == -1)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
Loading…
Reference in New Issue