From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Cyril VELTER <cyril(dot)velter(at)libertysurf(dot)fr> |
Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: BeOS Patch |
Date: | 2001-01-22 22:09:08 |
Message-ID: | 200101222209.RAA11660@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
I just received this patch. Looks OK to me. Comments?
[ Charset ISO-8859-1 unsupported, converting... ]
>
>
> Hi,
>
> A small patch to have nice error messages on beos (I have some valid
> negatives errors)
>
>
> Thanks
>
> cyril
>
>
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/error/elog.c,v
> retrieving revision 1.78
> diff -c -r1.78 elog.c
> *** elog.c 2001/01/21 00:59:26 1.78
> --- elog.c 2001/01/22 19:09:26
> ***************
> *** 146,152 ****
> --- 146,156 ----
> )
> errorstr = strerror(errno);
> else
> + #ifndef __BEOS__
> errorstr = NULL;
> + #else
> + errorstr =strerror(errno);
> + #endif
> /*
> * Some strerror()s return an empty string for out-of-range errno.
> * This is ANSI C spec compliant, but not exactly useful.
> Index: exc.c
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/error/exc.c,v
> retrieving revision 1.34
> diff -c -r1.34 exc.c
> *** exc.c 2001/01/21 00:59:26 1.34
> --- exc.c 2001/01/22 19:09:26
> ***************
> *** 122,128 ****
> --- 122,132 ----
> )
> errorstr = strerror(errno);
> else
> + #ifndef __BEOS__
> errorstr = NULL;
> + #else
> + errorstr =strerror(errno);
> + #endif
> /*
> * Some strerror()s return an empty string for out-of-range errno.
> * This is ANSI C spec compliant, but not exactly useful.
>
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-22 22:21:37 | Re: A Patch for MIC to EUC_TW code converting in mb support |
Previous Message | Dmitri E. Gurevich | 2001-01-22 16:13:08 | Strange error in PHP/Postgre on RadHat? |