diff options
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) |