Commit c31711ae authored by Phil Ross's avatar Phil Ross

Fix a 'not a normal file' error when compressing large files on Windows.

The bzip2 command on Windows would report a 'not a normal file' error
for files of size greater than 2^32 - 1 bytes.

Use _stati64 instead of _stat so that a successful result is returned
for large files.

From: https://github.com/philr/bzip2-windows/blob/v1.0.6.1/patches/06-support_64bit_file_sizes.diff

See also: https://github.com/philr/bzip2-windows/issues/3
parent ad723d65
......@@ -132,8 +132,8 @@
# define NORETURN /**/
# define PATH_SEP '\\'
# define MY_LSTAT _stat
# define MY_STAT _stat
# define MY_LSTAT _stati64
# define MY_STAT _stati64
# define MY_S_ISREG(x) ((x) & _S_IFREG)
# define MY_S_ISDIR(x) ((x) & _S_IFDIR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment