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/qsort.c | |
parent | 420cfd03666d71aa1f5e7b8453072895f6fa4b04 (diff) |
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/qsort.c')
-rw-r--r-- | src/port/qsort.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/port/qsort.c b/src/port/qsort.c index 08b53890442..607fcaccb9c 100644 --- a/src/port/qsort.c +++ b/src/port/qsort.c @@ -3,7 +3,7 @@ * Add do ... while() macro fix * Remove __inline, _DIAGASSERTs, __P * - * $PostgreSQL: pgsql/src/port/qsort.c,v 1.6 2005/05/25 21:40:43 momjian Exp $ + * $PostgreSQL: pgsql/src/port/qsort.c,v 1.7 2005/07/28 04:03:14 tgl Exp $ */ /* $NetBSD: qsort.c,v 1.13 2003/08/07 16:43:42 agc Exp $ */ @@ -37,9 +37,7 @@ * SUCH DAMAGE. */ -#include <stdlib.h> -#include <errno.h> -#include <sys/types.h> +#include "c.h" static char *med3(char *, char *, char *, |