pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix header inclusion order in c.h.
Date: Thu, 05 Dec 2024 01:34:25 +0000
Message-ID: <E1tJ0l7-001A4F-3F@gemulon.postgresql.org> (raw)

Fix header inclusion order in c.h.

Commit 962da900a added #include <stdint.h> to postgres_ext.h, which
broke c.h's header ordering rule.

The system headers on some systems would then lock down off_t's size in
private macros, before they'd had a chance to see our definition of
_FILE_OFFSET_BITS (and presumably other things).  This was picked up by
perl's ABI compatibility checks on some 32 bit systems in the build
farm.

Move #include "postgres_ext.h" down below the system header section, and
make the comments clearer (thanks to Tom for the new wording).

Diagnosed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/2397643.1733347237%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71cb352904c1833fe067d6f191269710fe2ca06f

Modified Files
--------------
src/include/c.h | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)



Message-ID: <E1tJ0l7-001A4F-3F@gemulon.postgresql.org>
Permalink:  ../E1tJ0l7-001A4F-3F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tJ0l7-001A4F-3F@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix header inclusion order in c.h.
  In-Reply-To: <E1tJ0l7-001A4F-3F@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox