diff options
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 543938325ed..300127f2931 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -35,11 +35,15 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1, #include <unistd.h> #endif #ifndef HAVE_RINDEX +#ifndef rindex #define rindex strrchr #endif +#endif #ifndef HAVE_INDEX +#ifndef index #define index strchr #endif +#endif $2], [char *(*pfn) = (char *(*)) $1], eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")]) |