]> granicus.if.org Git - postgresql/blobdiff - src/port/strerror.c
Optimize pg_comp_crc32c_sse42 routine slightly, and also use it on x86.
[postgresql] / src / port / strerror.c
index daa97a803a9e6bb4dce2dae59a2b4df48af5aacf..e92ebc9f55a22c10857498de0690fc85bd98e16a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: strerror.c,v 1.2 2003/07/28 00:09:16 tgl Exp $ */
+/* src/port/strerror.c */
 
 /*
  * strerror - map error number to descriptive string
@@ -9,9 +9,8 @@
  * 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;
@@ -23,7 +22,7 @@ strerror(int errnum)
 
        if (errnum < 0 || errnum > sys_nerr)
        {
-               sprintf(buf, "unrecognized error %d", errnum);
+               sprintf(buf, _("unrecognized error %d"), errnum);
                return buf;
        }