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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-03-18 13:10:32 +10:30
parent ae614c2e96
commit 102a67cbb2

4
configure vendored
View File

@ -169,7 +169,7 @@ int main(void)
{ {
printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt); printf("%p\n", crypto_aead_chacha20poly1305_ietf_encrypt);
printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES); printf("%d\n", crypto_aead_chacha20poly1305_ietf_NPUBBYTES);
exit(0); return 0;
} }
/*END*/ /*END*/
var=HAVE_SYSTEM_LIBBASE58 var=HAVE_SYSTEM_LIBBASE58
@ -183,7 +183,7 @@ code=
int main(void) int main(void)
{ {
printf("%p\n", b58check); printf("%p\n", b58check);
exit(0); return 0;
} }
/*END*/ /*END*/
EOF EOF