Skip site navigation (1) Skip section navigation (2)

pgsql: Fix a whole bunch of #includes that were either wrong or

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a whole bunch of #includes that were either wrong or
Date: 2005-07-28 04:03:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
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.

Modified Files:
        crypt.c (r1.12 -> r1.13)
        fseeko.c (r1.17 -> r1.18)
        getaddrinfo.c (r1.16 -> r1.17)
        gethostname.c (r1.6 -> r1.7)
        getopt.c (r1.7 -> r1.8)
        getopt_long.c (r1.3 -> r1.4)
        getrusage.c (r1.9 -> r1.10)
        memcmp.c (r1.7 -> r1.8)
        noblock.c (r1.6 -> r1.7)
        open.c (r1.9 -> r1.10)
        qsort.c (r1.6 -> r1.7)
        random.c (r1.5 -> r1.6)
        snprintf.c (r1.27 -> r1.28)
        srandom.c (r1.5 -> r1.6)
        strdup.c (r1.6 -> r1.7)
        strerror.c (r1.4 -> r1.5)
        strtol.c (r1.5 -> r1.6)
        strtoul.c (r1.1 -> r1.2)
        thread.c (r1.29 -> r1.30)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-07-28 04:31:31
Subject: pgsql: Put libpgport into OBJS instead of LIBS, so that it gets included
Previous:From: Tom LaneDate: 2005-07-28 03:16:03
Subject: pgsql: Remove some long-dead support for libpgtcl with Tk.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group