Error loggin in BeOS

From: "David Reid" <dreid(at)jetnet(dot)co(dot)uk>
To: pgsql-patches(at)hub(dot)org
Subject: Error loggin in BeOS
Date: 2000-10-07 13:44:34
Message-ID: 970926274_PM_BeOS.dreid@jetnet.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This caused a segfault in BeOS.

Index: src/backend/utils/error/elog.c
===================================================================
RCS file:
/home/projects/pgsql/cvsroot/pgsql/src/backend/utils/error/elog.c,v
retrieving revision 1.63
diff -u -u -r1.63 elog.c
--- src/backend/utils/error/elog.c 2000/10/03 03:11:21 1.63
+++ src/backend/utils/error/elog.c 2000/10/07 12:47:02
@@ -144,6 +144,9 @@
sprintf(errorstr_buf, "error %d", errno);
errorstr = errorstr_buf;
}
+#else
+ errorstr = strerror(errno);
+#endif /* __BEOS__ */

if (lev == ERROR || lev == FATAL)
{
@@ -182,9 +185,6 @@
prefix = prefix_buf;
break;
}
-#else
- errorstr = strerror(errno);
-#endif /* __BEOS__ */

timestamp_size = 0;
if (Log_timestamp)

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message David Reid 2000-10-07 13:55:47 Unix sockets on BeOS
Previous Message David Reid 2000-10-07 12:55:10 [PATCH] BeOS support