------------------------------------------------------------ revno: 13473 revision-id: squid3@treenet.co.nz-20140622033330-7ht5vac7q7hjxzhp parent: squid3@treenet.co.nz-20140621155255-0nmj3b4qge453tto fixes bug(s): http://bugs.squid-cache.org/show_bug.cgi?id=4073 committer: Amos Jeffries branch nick: trunk timestamp: Sat 2014-06-21 20:33:30 -0700 message: Bug 4073 partial: 3.4 fails to compile on cygwin ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20140622033330-7ht5vac7q7hjxzhp # target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # testament_sha1: cc5130a04249d1565a364a0224e191f008fd0fc9 # timestamp: 2014-06-22 03:53:52 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # base_revision_id: squid3@treenet.co.nz-20140621155255-\ # 0nmj3b4qge453tto # # Begin patch === modified file 'compat/os/mswindows.h' --- compat/os/mswindows.h 2014-02-13 07:02:35 +0000 +++ compat/os/mswindows.h 2014-06-22 03:33:30 +0000 @@ -148,33 +148,76 @@ #define umask _umask #define unlink _unlink +#ifndef O_RDONLY #define O_RDONLY _O_RDONLY +#endif +#ifndef O_WRONLY #define O_WRONLY _O_WRONLY +#endif +#ifndef O_RDWR #define O_RDWR _O_RDWR +#endif +#ifndef O_APPEND #define O_APPEND _O_APPEND - +#endif +#ifndef O_CREAT #define O_CREAT _O_CREAT +#endif +#ifndef O_TRUNC #define O_TRUNC _O_TRUNC +#endif +#ifndef O_EXCL #define O_EXCL _O_EXCL - +#endif +#ifndef O_TEXT #define O_TEXT _O_TEXT +#endif +#ifndef O_BINARY #define O_BINARY _O_BINARY +#endif +#ifndef O_RAW #define O_RAW _O_BINARY +#endif +#ifndef O_TEMPORARY #define O_TEMPORARY _O_TEMPORARY +#endif +#ifndef O_NOINHERIT #define O_NOINHERIT _O_NOINHERIT +#endif +#ifndef O_SEQUENTIAL #define O_SEQUENTIAL _O_SEQUENTIAL +#endif +#ifndef O_RANDOM #define O_RANDOM _O_RANDOM +#endif +#ifndef O_NDELAY #define O_NDELAY 0 +#endif +#ifndef S_IFMT #define S_IFMT _S_IFMT +#endif +#ifndef S_IFDIR #define S_IFDIR _S_IFDIR +#endif +#ifndef S_IFCHR #define S_IFCHR _S_IFCHR +#endif +#ifndef S_IFREG #define S_IFREG _S_IFREG +#endif +#ifndef S_IREAD #define S_IREAD _S_IREAD +#endif +#ifndef S_IWRITE #define S_IWRITE _S_IWRITE +#endif +#ifndef S_IEXEC #define S_IEXEC _S_IEXEC - +#endif +#ifndef S_IRWXO #define S_IRWXO 007 +#endif #if defined(_MSC_VER) #define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)