diff --git a/fsck/fsck_message.c b/fsck/fsck_message.c index afbbf5a..da7db07 100644 --- a/fsck/fsck_message.c +++ b/fsck/fsck_message.c @@ -8,6 +8,8 @@ #include "jfs_endian.h" #include "xfsckint.h" +#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name)) + int msg_lvl = fsck_debug; int dbg_output = 0; diff --git a/fscklog/fscklog.c b/fscklog/fscklog.c index 292adda..08aa385 100644 --- a/fscklog/fscklog.c +++ b/fscklog/fscklog.c @@ -76,6 +76,8 @@ #include "xfsck.h" #include "fsck_message.h" +#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name)) + struct fscklog_record fscklog_record; struct fscklog_record *local_recptr;