Re: xlog.c.patch for cygwin port. - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: xlog.c.patch for cygwin port.
Date
Msg-id 200006091604.MAA00441@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] xlog.c.patch for cygwin port.  (yutaka tanida <yutaka@marin.or.jp>)
List 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,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: xlog.c.patch for cygwin port.
Next
From: Bruce Momjian
Date:
Subject: Re: freefuncs.c is never called from anywhere!?]