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 <dvlasenk@redhat.com>
This commit is contained in:
parent
1b0df40644
commit
5bd67c86a9
2
block.c
2
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:
|
||||
|
2
strace.c
2
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user