Re: xlog.c.patch for cygwin port.

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: yutaka tanida <yutaka@marin.or.jp>
Cc: Alexei Zakharov <A.S.Zakharov@inp.nsk.su>, pgsql-hackers@postgreSQL.org
Date: 2000-06-09T16:04:10Z
Lists: pgsql-hackers
We have resolved all the O_BINARY calls for 7.1.  Thanks.


> On Mon, 6 Mar 2000 12:06:27 +0600
> "Alexei Zakharov" <A.S.Zakharov@inp.nsk.su> wrote:
> 
> > I suggest a following patch.  BTW the situation appeared before, 
> > see hba.c, pqcomm.c and others.
> 
> I propose another patch, against src/include/port/win.h.
> If this patch is applied, #ifdef with open() such as following is no
> more needed.
> 
> --
> #ifndef __CYGWIN__
>   fd=open(path,flags,mode);
> #else
>   fd=open(path,flags | O_BINARY,mode);
> #endif

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026