# See: https://github.com/postgres/postgres/commit/1c0cf52b39ca3a9a79661129cff918dc000a55eb

--- configure.orig	2015-10-06 03:19:44.000000000 +0800
+++ configure	2022-10-12 15:09:39.000000000 +0800
@@ -23849,7 +23849,7 @@
   return 1;
 }
 main() {
-  exit(! does_int64_work());
+  return (! does_int64_work());
 }
 _ACEOF
 rm -f conftest$ac_exeext
@@ -23986,7 +23986,7 @@
   return 1;
 }
 main() {
-  exit(! does_int64_work());
+  return (! does_int64_work());
 }
 _ACEOF
 rm -f conftest$ac_exeext
@@ -24144,7 +24144,7 @@
   return 1;
 }
 main() {
-  exit(! does_int64_snprintf_work());
+  return (! does_int64_snprintf_work());
 }
 _ACEOF
 rm -f conftest$ac_exeext

--- config/c-library.m4.orig	2015-10-06 03:19:44.000000000 +0800
+++ config/c-library.m4	2022-10-12 15:10:07.000000000 +0800
@@ -251,7 +251,7 @@
   return 1;
 }
 main() {
-  exit(! does_int64_snprintf_work());
+  return (! does_int64_snprintf_work());
 }],
 [pgac_cv_snprintf_long_long_int_format=$pgac_format; break],
 [],

--- config/c-compiler.m4.orig	2015-10-06 03:19:44.000000000 +0800
+++ config/c-compiler.m4	2022-10-12 15:10:46.000000000 +0800
@@ -85,7 +85,7 @@
   return 1;
 }
 main() {
-  exit(! does_int64_work());
+  return (! does_int64_work());
 }],
 [Ac_cachevar=yes],
 [Ac_cachevar=no],