diff options
| author | Xin LI <delphij@FreeBSD.org> | 2010-04-12 17:43:58 +0000 | 
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2010-04-12 17:43:58 +0000 | 
| commit | 1a0a89c328dc7176c2058e08087761d0b9957ff8 (patch) | |
| tree | 12febbe1626e04bc0dd014c1019b5858090b3650 /minigzip.c | |
| parent | a665426b03b0f88ddb21074e5f760c8d3ba25fd1 (diff) | |
Notes
Diffstat (limited to 'minigzip.c')
| -rw-r--r-- | minigzip.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/minigzip.c b/minigzip.c index 9677fa07f630..9825ccc3a712 100644 --- a/minigzip.c +++ b/minigzip.c @@ -32,6 +32,9 @@  #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)  #  include <fcntl.h>  #  include <io.h> +#  ifdef UNDER_CE +#    include <stdlib.h> +#  endif  #  define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)  #else  #  define SET_BINARY_MODE(file) @@ -50,9 +53,11 @@  #  include <unix.h> /* for fileno */  #endif +#if !defined(Z_HAVE_UNISTD_H) && !defined(_LARGEFILE64_SOURCE)  #ifndef WIN32 /* unlink already in stdio.h for WIN32 */    extern int unlink OF((const char *));  #endif +#endif  #if defined(UNDER_CE)  #  include <windows.h> | 
