2002-02-20 Daniel Jacobowitz <drow@mvista.com>

* gdbserver/linux-low.c (mywait): Change argument to waitpid
        to be an integer instead of a `union wait'.
This commit is contained in:
Daniel Jacobowitz 2002-02-20 22:58:57 +00:00
parent 75c9abc620
commit e5f1222d6b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Change argument to waitpid
to be an integer instead of a `union wait'.
2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-nat.c: Call the operating system GNU/Linux.

View File

@ -109,10 +109,10 @@ unsigned char
mywait (char *status)
{
int pid;
union wait w;
int w;
enable_async_io ();
pid = waitpid (inferior_pid, (int *)&w, 0);
pid = waitpid (inferior_pid, &w, 0);
disable_async_io ();
if (pid != inferior_pid)
perror_with_name ("wait");