diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-28 04:03:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-07-28 04:03:14 +0000 |
commit | 06e1d62689d2d3ceca014b46476f81ef2d9ceeac (patch) | |
tree | 7f12da6bfc2ff6bc05a540151caa11b93970484e /src/port/strerror.c | |
parent | 420cfd03666d71aa1f5e7b8453072895f6fa4b04 (diff) | |
download | postgresql-06e1d62689d2d3ceca014b46476f81ef2d9ceeac.tar.gz postgresql-06e1d62689d2d3ceca014b46476f81ef2d9ceeac.zip |
Fix a whole bunch of #includes that were either wrong or redundant.
The first rule of portability for us is 'thou shalt have no other gods
before c.h', and a whole lot of these files were either not including
c.h at all, or including random system headers beforehand, either of
which sins can mess up largefile support nicely. Once you have
included c.h, there is no need to re-include what it includes, either.
Diffstat (limited to 'src/port/strerror.c')
-rw-r--r-- | src/port/strerror.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/port/strerror.c b/src/port/strerror.c index 00de19b62d5..eebeb1b858b 100644 --- a/src/port/strerror.c +++ b/src/port/strerror.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/port/strerror.c,v 1.4 2005/02/22 04:43:16 momjian 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 @@ -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; |