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: 20050728040315.34DF252952@svr1.postgresql.org (view raw or flat)
Thread:
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:
--------------
    pgsql/src/port:
        crypt.c (r1.12 -> r1.13)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/crypt.c.diff?r1=1.12&r2=1.13)
        fseeko.c (r1.17 -> r1.18)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/fseeko.c.diff?r1=1.17&r2=1.18)
        getaddrinfo.c (r1.16 -> r1.17)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/getaddrinfo.c.diff?r1=1.16&r2=1.17)
        gethostname.c (r1.6 -> r1.7)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/gethostname.c.diff?r1=1.6&r2=1.7)
        getopt.c (r1.7 -> r1.8)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/getopt.c.diff?r1=1.7&r2=1.8)
        getopt_long.c (r1.3 -> r1.4)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/getopt_long.c.diff?r1=1.3&r2=1.4)
        getrusage.c (r1.9 -> r1.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/getrusage.c.diff?r1=1.9&r2=1.10)
        memcmp.c (r1.7 -> r1.8)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/memcmp.c.diff?r1=1.7&r2=1.8)
        noblock.c (r1.6 -> r1.7)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/noblock.c.diff?r1=1.6&r2=1.7)
        open.c (r1.9 -> r1.10)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/open.c.diff?r1=1.9&r2=1.10)
        qsort.c (r1.6 -> r1.7)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/qsort.c.diff?r1=1.6&r2=1.7)
        random.c (r1.5 -> r1.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/random.c.diff?r1=1.5&r2=1.6)
        snprintf.c (r1.27 -> r1.28)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/snprintf.c.diff?r1=1.27&r2=1.28)
        srandom.c (r1.5 -> r1.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/srandom.c.diff?r1=1.5&r2=1.6)
        strdup.c (r1.6 -> r1.7)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/strdup.c.diff?r1=1.6&r2=1.7)
        strerror.c (r1.4 -> r1.5)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/strerror.c.diff?r1=1.4&r2=1.5)
        strtol.c (r1.5 -> r1.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/strtol.c.diff?r1=1.5&r2=1.6)
        strtoul.c (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/strtoul.c.diff?r1=1.1&r2=1.2)
        thread.c (r1.29 -> r1.30)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/thread.c.diff?r1=1.29&r2=1.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-2014 The PostgreSQL Global Development Group