From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use return instead of exit() in configure |
Date: | 2020-09-08 08:11:18 |
Message-ID: | E1kFYik-0000IS-Fa@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Use return instead of exit() in configure
Using exit() requires stdlib.h, which is not included. Use return
instead. Also add return type for main().
Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Reviewed-by: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
Backpatched because Apple macOS 10.16/11 (Big Sur) compiler makes
calling undeclared functions an error, so these configure tests would
fail.
Reported-by: Thomas Gilligan <thomas(dot)gilligan(at)icloud(dot)com>
Reported-by: Jesse Zhang <sbjesse(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/09A4B554-82B1-4536-B191-2461342EE0BB%40icloud.com
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/69fdf3d2e987cb5543f00a945cffbf6e422d5868
Modified Files
--------------
config/c-compiler.m4 | 4 +++-
config/c-library.m4 | 4 +++-
configure | 12 +++++++++---
3 files changed, 15 insertions(+), 5 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2020-09-08 15:24:58 | pgsql: Use <unnamed> for name of unnamed portal's memory context |
Previous Message | Michael Paquier | 2020-09-08 02:39:12 | Re: pgsql: Add support for partitioned tables and indexes in REINDEX |