diff options
Diffstat (limited to 'libiberty/configure')
-rwxr-xr-x | libiberty/configure | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libiberty/configure b/libiberty/configure index 306c07bd..451af49 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6919,7 +6919,10 @@ else else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -find_stack_direction () +#include <stdlib.h> + +int +find_stack_direction (void) { static char *addr = 0; auto char dummy; @@ -6931,7 +6934,9 @@ find_stack_direction () else return (&dummy > addr) ? 1 : -1; } -main () + +int +main (void) { exit (find_stack_direction() < 0); } @@ -7756,6 +7761,8 @@ else /* Test by Jim Wilson and Kaveh Ghazi. Check whether strncmp reads past the end of its string parameters. */ +#include <stdlib.h> +#include <string.h> #include <sys/types.h> #ifdef HAVE_FCNTL_H @@ -7783,7 +7790,8 @@ else #define MAP_LEN 0x10000 -main () +int +main (void) { #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) char *p; |