diff options
-rw-r--r-- | lib/dirname.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <string.h> +#ifndef rindex #define rindex strrchr +#endif #else #include <strings.h> #endif |