Fix a whole bunch of #includes that were either wrong or redundant.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 06e1d62689d2d3ceca014b46476f81ef2d9ceeac
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-07-28T04:03:14Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/port/crypt.c modified +0 −3
src/port/fseeko.c modified +2 −4
src/port/getaddrinfo.c modified +1 −2
src/port/gethostname.c modified +1 −3
src/port/getopt.c modified +0 −4
src/port/getopt_long.c modified +7 −4
src/port/getrusage.c modified +2 −4
src/port/memcmp.c modified +3 −2
src/port/noblock.c modified +2 −2
src/port/open.c modified +3 −3
src/port/qsort.c modified +2 −4
src/port/random.c modified +2 −3
src/port/snprintf.c modified +2 −2
src/port/srandom.c modified +2 −3
src/port/strdup.c modified +4 −3
src/port/strerror.c modified +3 −4
src/port/strtol.c modified +3 −2
src/port/strtoul.c modified +3 −2
src/port/thread.c modified +2 −3