From 5bd67c86a93c658d258348e8f14af94fd45cbeb6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 15 Aug 2011 11:36:09 +0200 Subject: [PATCH] Fix compilation on 2.4.20 kernel based system * block.c (block_ioctl): add ifdef/endif around BLKGETSIZE64 usage * strace.c (trace): add ifdef/endif around WIFCONTINUED usage Signed-off-by: Denys Vlasenko --- block.c | 2 ++ strace.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/block.c b/block.c index e00c75b8..4a3b4289 100644 --- a/block.c +++ b/block.c @@ -194,6 +194,7 @@ block_ioctl(struct tcb *tcp, long code, long arg) } break; +#ifdef BLKGETSIZE64 /* return an uint64_t */ case BLKGETSIZE64: if (exiting(tcp)) { @@ -204,6 +205,7 @@ block_ioctl(struct tcb *tcp, long code, long arg) tprintf(", %" PRIu64, val); } break; +#endif /* More complex types */ case BLKDISCARD: diff --git a/strace.c b/strace.c index 7314d4ad..df10a723 100644 --- a/strace.c +++ b/strace.c @@ -2450,8 +2450,10 @@ trace() sprintf(buf, "WIFEXITED,exitcode=%u", WEXITSTATUS(status)); if (WIFSTOPPED(status)) sprintf(buf, "WIFSTOPPED,sig=%s", signame(WSTOPSIG(status))); +#ifdef WIFCONTINUED if (WIFCONTINUED(status)) strcpy(buf, "WIFCONTINUED"); +#endif fprintf(stderr, " [wait(0x%04x) = %u] %s\n", status, pid, buf); } -- 2.40.0