| 1 | diff --git a/fsck/fsck_message.c b/fsck/fsck_message.c
|
| 2 | index afbbf5a..da7db07 100644
|
| 3 | |
| 4 | |
| 5 | @@ -8,6 +8,8 @@
|
| 6 | #include "jfs_endian.h"
|
| 7 | #include "xfsckint.h"
|
| 8 |
|
| 9 | +#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
|
| 10 | +
|
| 11 | int msg_lvl = fsck_debug;
|
| 12 | int dbg_output = 0;
|
| 13 |
|
| 14 | diff --git a/fscklog/fscklog.c b/fscklog/fscklog.c
|
| 15 | index 292adda..08aa385 100644
|
| 16 | |
| 17 | |
| 18 | @@ -76,6 +76,8 @@
|
| 19 | #include "xfsck.h"
|
| 20 | #include "fsck_message.h"
|
| 21 |
|
| 22 | +#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name))
|
| 23 | +
|
| 24 | struct fscklog_record fscklog_record;
|
| 25 | struct fscklog_record *local_recptr;
|
| 26 |
|