Use return instead of exit() in configure
authorPeter Eisentraut <[email protected]>
Tue, 8 Sep 2020 08:09:56 +0000 (10:09 +0200)
committerPeter Eisentraut <[email protected]>
Tue, 8 Sep 2020 08:09:56 +0000 (10:09 +0200)
commit69fdf3d2e987cb5543f00a945cffbf6e422d5868
tree1576303fc4541adb262a657fdb98fcd1348387aa
parente0b4c7dd0b61461da8e4a74a98326e4b591fd575
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 <[email protected]>
Reviewed-by: Thomas Munro <[email protected]>
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 <[email protected]>
Reported-by: Jesse Zhang <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/09A4B554-82B1-4536-B191-2461342EE0BB%40icloud.com
config/c-compiler.m4
config/c-library.m4
configure