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:
Denys Vlasenko 2011-08-15 11:36:09 +02:00
parent 1b0df40644
commit 5bd67c86a9
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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);
}