diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-12-27 12:07:41 -0500 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-12-27 12:07:41 -0500 |
commit | 66ef42e7776ba4649dc25e5153099f255164ba85 (patch) | |
tree | 504029a709d0c4d55315a21bee243ebce92beec0 /libarchive/archive_windows.h | |
parent | fb2442f93b687d04ad226e5bc2353d2e6b04f3c6 (diff) | |
download | libarchive-66ef42e7776ba4649dc25e5153099f255164ba85.tar.gz |
Fix issue 208, test_write_compress_program hangs.
Rework __archive_create_child function to make ReadFile function return
in this case, and remvoe __la_fcntl.
SVN-Revision: 4018
Diffstat (limited to 'libarchive/archive_windows.h')
-rw-r--r-- | libarchive/archive_windows.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index b26811e5..cfb3e97d 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -90,7 +90,7 @@ /* Alias the Windows _function to the POSIX equivalent. */ #define close _close -#define fcntl __la_fcntl +#define fcntl(fd, cmd, flg) /* No operation. */ #ifndef fileno #define fileno _fileno #endif @@ -243,7 +243,6 @@ /* Replacement POSIX function */ -extern int __la_fcntl(int fd, int cmd, int val); extern int __la_fstat(int fd, struct stat *st); extern int __la_lstat(const char *path, struct stat *st); extern int __la_open(const char *path, int flags, ...); |