diff --git a/defs.h b/defs.h index 62b37191..a7e87933 100644 --- a/defs.h +++ b/defs.h @@ -490,6 +490,7 @@ extern int get_scno(struct tcb *); extern long known_scno(struct tcb *); extern long do_ptrace(int request, struct tcb *tcp, void *addr, void *data); extern int ptrace_restart(int request, struct tcb *tcp, int sig); +extern int force_result(struct tcb *, int, long); extern int trace_syscall(struct tcb *); extern int count_syscall(struct tcb *, struct timeval *); extern void printxval(const struct xlat *, int, const char *); diff --git a/process.c b/process.c index c69e45e6..dadf8306 100644 --- a/process.c +++ b/process.c @@ -1981,7 +1981,6 @@ int flagarg; if (tcp->u_arg[flagarg] & WNOHANG) { /* We must force a fake result of 0 instead of the ECHILD error. */ - extern int force_result(); return force_result(tcp, 0, 0); } }