diff options
author | Jim Meyering <jim@meyering.net> | 1993-04-22 03:10:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-04-22 03:10:47 +0000 |
commit | 1032082dca7d73491e8f6d72a95eae8d501ba791 (patch) | |
tree | 14efe0317826cb2a1730b423af79878dc3ef59d3 | |
parent | 7201bd742e8769a908ce712335700ea1714616b1 (diff) | |
download | gnulib-1032082dca7d73491e8f6d72a95eae8d501ba791.tar.gz |
GNU file utilitiesFILEUTILS-3_5
-rw-r--r-- | lib/backupfile.c | 4 | ||||
-rw-r--r-- | lib/mountlist.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/backupfile.c b/lib/backupfile.c index 7a624cfece..f15e530bff 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 <string.h> +#ifndef index #define index strchr +#endif +#ifndef rindex #define rindex strrchr +#endif #else #include <strings.h> #endif diff --git a/lib/mountlist.c b/lib/mountlist.c index 1dc78c5ced..947fb7ed27 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"; |