summaryrefslogtreecommitdiff
path: root/config/c-compiler.m4
diff options
context:
space:
mode:
authorPeter Eisentraut2016-08-30 16:00:00 +0000
committerPeter Eisentraut2016-09-30 18:03:57 +0000
commit1c0cf52b39ca3a9a79661129cff918dc000a55eb (patch)
tree2cb086613ab3b89f60a1c3358cdb674e123d82b4 /config/c-compiler.m4
parentf1a469c9f1cfeab9f9c7d4a5d3e75892e7b6f60c (diff)
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>
Diffstat (limited to 'config/c-compiler.m4')
-rw-r--r--config/c-compiler.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4
index a7f6773ae1..7d901e1f1a 100644
--- a/config/c-compiler.m4
+++ b/config/c-compiler.m4
@@ -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],