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>
This commit is contained in:
Peter Eisentraut 2016-08-30 12:00:00 -04:00
parent f1a469c9f1
commit 1c0cf52b39
3 changed files with 15 additions and 5 deletions

View File

@ -71,8 +71,10 @@ int does_int64_work()
return 0;
return 1;
}
int
main() {
exit(! does_int64_work());
return (! does_int64_work());
}])],
[Ac_cachevar=yes],
[Ac_cachevar=no],

View File

@ -204,8 +204,10 @@ int does_int64_snprintf_work()
return 0; /* either multiply or snprintf is busted */
return 1;
}
int
main() {
exit(! does_int64_snprintf_work());
return (! does_int64_snprintf_work());
}]])],
[pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break],
[],

12
configure vendored
View File

@ -13594,8 +13594,10 @@ int does_int64_work()
return 0;
return 1;
}
int
main() {
exit(! does_int64_work());
return (! does_int64_work());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
@ -13676,8 +13678,10 @@ int does_int64_work()
return 0;
return 1;
}
int
main() {
exit(! does_int64_work());
return (! does_int64_work());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
@ -13770,8 +13774,10 @@ int does_int64_snprintf_work()
return 0; /* either multiply or snprintf is busted */
return 1;
}
int
main() {
exit(! does_int64_snprintf_work());
return (! does_int64_snprintf_work());
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :