From 1032082dca7d73491e8f6d72a95eae8d501ba791 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 22 Apr 1993 03:10:47 +0000 Subject: [PATCH] GNU file utilities --- lib/backupfile.c | 4 ++++ lib/mountlist.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/backupfile.c b/lib/backupfile.c index 7a624cfec..f15e530bf 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -24,8 +24,12 @@ #include "backupfile.h" #if defined(STDC_HEADERS) || defined(HAVE_STRING_H) #include +#ifndef index #define index strchr +#endif +#ifndef rindex #define rindex strrchr +#endif #else #include #endif diff --git a/lib/mountlist.c b/lib/mountlist.c index 1dc78c5ce..947fb7ed2 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -121,8 +121,10 @@ fstype_to_string (t) return "ufs"; case MOUNT_NFS: return "nfs"; +#ifdef MOUNT_PC case MOUNT_PC: return "pc"; +#endif #ifdef MOUNT_MFS case MOUNT_MFS: return "mfs"; -- 2.11.0