diff options
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 1503ff8..d7d14a2 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -16,6 +16,12 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1, #endif #ifdef HAVE_UNISTD_H #include <unistd.h> +#endif +#ifndef HAVE_RINDEX +#define rindex strrchr +#endif +#ifndef HAVE_INDEX +#define index strchr #endif], [char *(*pfn) = (char *(*)) $1], gcc_cv_decl_needed_$1=no, gcc_cv_decl_needed_$1=yes)]) |