diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-03 03:11:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-03 03:11:26 +0000 |
commit | 87c0e623ba14c2de376ca9af06fb21da7b2c2215 (patch) | |
tree | e67887aaff9248f2e0c866566ed0b2967cabaae2 /src/backend/utils/error/elog.c | |
parent | de1af06287dd0b169385b0756074a0b24feb123c (diff) | |
download | postgresql-87c0e623ba14c2de376ca9af06fb21da7b2c2215.tar.gz postgresql-87c0e623ba14c2de376ca9af06fb21da7b2c2215.zip |
New diff that now covers the entire tree. Applying this gets postgresql
working on the VERY latest version of BeOS. I'm sure there will be
alot of comments, but then if there weren't I'd be disappointed!
Thanks for your continuing efforts to get this into your tree.
Haven't bothered with the new files as they haven't changed.
BTW Peter, the compiler is "broken" about the bool define and so on.
I'm filing a bug report to try and get it addressed. Hopefully then we
can tidy up the code a bit.
I await the replies with interest :)
David Reid
Diffstat (limited to 'src/backend/utils/error/elog.c')
-rw-r--r-- | src/backend/utils/error/elog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 60307ff2b57..4aeefacb824 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.62 2000/09/29 13:35:26 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.63 2000/10/03 03:11:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -134,6 +134,8 @@ elog(int lev, const char *fmt, ...) if (lev <= DEBUG && Debugfile < 0) return; /* ignore debug msgs if noplace to send */ +/* BeOS doesn't have sys_nerr and should be able to use strerror()... */ +#ifndef __BEOS__ /* save errno string for %m */ if (errno < sys_nerr && errno >= 0) errorstr = strerror(errno); @@ -180,6 +182,9 @@ elog(int lev, const char *fmt, ...) prefix = prefix_buf; break; } +#else + errorstr = strerror(errno); +#endif /* __BEOS__ */ timestamp_size = 0; if (Log_timestamp) |