summaryrefslogtreecommitdiff
path: root/unix/osdep.h
blob: bfb5d4debd9b34d46548c4b673bc044047dade25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
  Copyright (c) 1990-2005 Info-ZIP.  All rights reserved.

  See the accompanying file LICENSE, version 2004-May-22 or later
  (the contents of which are also included in zip.h) for terms of use.
  If, for some reason, both of these files are missing, the Info-ZIP license
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
*/
#include <sys/types.h>
#include <sys/stat.h>


#ifdef __CYGWIN__

/* File operations:
 *   use "b" for binary;
 *   use "S" for sequential access on NT to prevent the NT file cache
 *   eating up memory with large .zip files.
 */
#  define FOPR "rb"
#  define FOPM "r+b"
#  define FOPW "wbS"

/* Cygwin is not Win32. */
#  undef WIN32

#endif /* ?__CYGWIN__ */


/* Enable the "UT" extra field (time info) */
#if !defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME)
#  define USE_EF_UT_TIME
#endif