Index: term.c
--- term.c.orig
+++ term.c
@@ -94,6 +94,8 @@ static char Rcs_Id[] =
  *
  */
 
+#include <sys/ioctl.h>
+#include <sys/wait.h>
 #include "config.h"
 #include "ispell.h"
 #include "proto.h"
