From: Amos Jeffries Date: Wed, 12 Nov 2014 12:15:31 +0000 (-0800) Subject: Cygwin: FOPEN may be defined X-Git-Tag: merge-candidate-3-v1~494 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9facd91c0f126a37b1a15e0793fe30886b0578e6;p=thirdparty%2Fsquid.git Cygwin: FOPEN may be defined --- diff --git a/compat/os/mswindows.h b/compat/os/mswindows.h index 3b8f3f7cef..e80fd6a124 100644 --- a/compat/os/mswindows.h +++ b/compat/os/mswindows.h @@ -414,7 +414,9 @@ typedef struct { #define _pioinfo(i) ( __pioinfo[(i) >> IOINFO_L2E] + ((i) & (IOINFO_ARRAY_ELTS - 1)) ) #define _osfile(i) ( _pioinfo(i)->osfile ) #define _osfhnd(i) ( _pioinfo(i)->osfhnd ) +#if !defined(FOPEN) #define FOPEN 0x01 /* file handle open */ +#endif #if defined(_MSC_VER) SQUIDCEXTERN _CRTIMP ioinfo * __pioinfo[];