GNU file utilities FILEUTILS-3_5
authorJim Meyering <jim@meyering.net>
Thu, 22 Apr 1993 03:10:47 +0000 (03:10 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Apr 1993 03:10:47 +0000 (03:10 +0000)
lib/backupfile.c
lib/mountlist.c

index 7a624cf..f15e530 100644 (file)
 #include "backupfile.h"
 #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
 #include <string.h>
+#ifndef index
 #define index strchr
+#endif
+#ifndef rindex
 #define rindex strrchr
+#endif
 #else
 #include <strings.h>
 #endif
index 1dc78c5..947fb7e 100644 (file)
@@ -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";