-/* $PostgreSQL: pgsql/src/port/strerror.c,v 1.3 2003/11/29 22:41:31 pgsql Exp $ */
+/* $PostgreSQL: pgsql/src/port/strerror.c,v 1.5 2005/07/28 04:03:14 tgl Exp $ */
/*
* strerror - map error number to descriptive string
* modified for ANSI by D'Arcy J.M. Cain
*/
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
+#include "c.h"
+
extern const char *const sys_errlist[];
extern int sys_nerr;
if (errnum < 0 || errnum > sys_nerr)
{
- sprintf(buf, "unrecognized error %d", errnum);
+ sprintf(buf, _("unrecognized error %d"), errnum);
return buf;
}