From 102a67cbb258c7630be40be2b75f4027f83bca58 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Mar 2019 13:10:32 +1030 Subject: [PATCH] configure: fix detection of builtin libs with -Werror. We didn't include stdlib, so these tests "failed" due to implicit declaration of exit(). Signed-off-by: Rusty Russell --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8b6bccf1a..f5873d7a5 100755 --- a/configure +++ b/configure @@ -169,7 +169,7 @@ int main(void) { printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt); printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES); - exit(0); + return 0; } /*END*/ var=HAVE_SYSTEM_LIBBASE58 @@ -183,7 +183,7 @@ code= int main(void) { printf("%p\n", b58check); - exit(0); + return 0; } /*END*/ EOF