20000-05-18 H.J. Lu (hjl@gnu.org)
[binutils-gdb.git] / gdb / remote-rdp.c
index 6701f740078c6bc7b71b5cf29dd81f1185d5053f..e193abb4bf58c8f728b3e24a27bb34abc60c70b8 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "defs.h"
 #include "inferior.h"
-#include "wait.h"
+#include "gdb_wait.h"
 #include "value.h"
 #include "callback.h"
 #include "command.h"
 #include "symfile.h"
 #include "remote-utils.h"
 #include "gdb_string.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
 #include "gdbcore.h"
 
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
 
 extern struct target_ops remote_rdp_ops;
 static serial_t io;
@@ -480,7 +480,7 @@ send_rdp (char *template,...)
          abort ();
        }
     }
-  va_end (args);
+  va_end (alist);
 
   if (dst != buf)
     abort ();