changeset 59:3209a15d374c

GNU file utilities
author Jim Meyering <jim@meyering.net>
date Thu, 22 Apr 1993 03:10:47 +0000
parents 4dc25cfd0b27
children 6a60ef1ed3c7
files lib/backupfile.c lib/mountlist.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/backupfile.c
+++ b/lib/backupfile.c
@@ -24,8 +24,12 @@
 #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
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -121,8 +121,10 @@
       return "ufs";
     case MOUNT_NFS:
       return "nfs";
+#ifdef MOUNT_PC
     case MOUNT_PC:
       return "pc";
+#endif
 #ifdef MOUNT_MFS
     case MOUNT_MFS:
       return "mfs";