 +#if 0
    int tty_fd;
    char *tty;
- 
+
 @@ -490,6 +491,7 @@
      }
    if (tty_fd >= 0)
      close (tty_fd);
 +#endif
  }
- 
+
  /* Return 1 if PATH1 and PATH2 are the same file.  This is kind of
 diff -ru source/include/posixwait.h source-new/include/posixwait.h
 --- source/include/posixwait.h	2008-08-12 07:03:03.000000000 -0700
 +++ source-new/include/posixwait.h	2017-08-07 18:37:29.854754332 -0700
 @@ -34,7 +34,7 @@
- 
+
  /* How to get the status of a job.  For Posix, this is just an
     int, but for other systems we have to crack the union wait. */
 -#if !defined (_POSIX_VERSION)

+     sigset_t *oldset;
 {
   int old, new;
 
@@ -696,11 +698,11 @@
   switch (operation)
     {

@@ -28,7 +28,6 @@
 #  include <unistd.h>
 #endif

-#include <sys/ioctl.h>

 /* Try to find the definitions of `struct winsize' and TIOGCWINSZ */

diff -ru source/sig.c source-new/sig.c
--- source/sig.c	2016-02-11 12:02:45.000000000 -0800
+++ source-new/sig.c	2017-08-07 19:56:13.637701224 -0700
@@ -684,7 +684,9 @@

 /* Perform OPERATION on NEWSET, perhaps leaving information in OLDSET. */
 sigprocmask (operation, newset, oldset)
-     int operation, *newset, *oldset;
