diff --git a/lib/dirname.c b/lib/dirname.c index 82deea7b4..7467d29e8 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -22,7 +22,9 @@ char *malloc (); #endif #if defined(USG) || defined(STDC_HEADERS) #include +#ifndef rindex #define rindex strrchr +#endif #else #include #endif