pgsql: Use return instead of exit() in configure
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@iki.fi>
Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.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.gilligan@icloud.com>
Reported-by: Jesse Zhang <sbjesse@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: /messages/by-id/09A4B554-82B1-4536-B191-2461342EE0BB@icloud.com
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/27acbd51e60c98cba6441d7a88210a1c33bf9db4
Modified Files
--------------
config/c-compiler.m4 | 4 +++-
config/c-library.m4 | 4 +++-
configure | 12 +++++++++---
3 files changed, 15 insertions(+), 5 deletions(-)