  #  define WSTATUS(t)  (t.w_status)
  #else /* _POSIX_VERSION */
 @@ -50,7 +50,7 @@
- 
+
  /* More Posix P1003.1 definitions.  In the POSIX versions, the parameter is
     passed as an `int', in the non-POSIX version, as `union wait'. */
 -#if defined (_POSIX_VERSION)
 +#if 1
- 
+
  #  if !defined (WSTOPSIG)
  #    define WSTOPSIG(s)       ((s) >> 8)
 diff -ru source/lib/sh/getcwd.c source-new/lib/sh/getcwd.c
 --- source/lib/sh/getcwd.c	2012-03-10 07:48:50.000000000 -0800
 +++ source-new/lib/sh/getcwd.c	2017-08-07 19:53:52.379759811 -0700
 @@ -20,7 +20,7 @@
- 
+
  #include <config.h>
- 
+
 -#if !defined (HAVE_GETCWD)
 +#if 0
- 
+
  #if !defined (__GNUC__) && !defined (HAVE_ALLOCA_H) && defined (_AIX)
    #pragma alloca
-diff -ru source/lib/sh/Makefile.in source-new/lib/sh/Makefile.in
---- source/lib/sh/Makefile.in	2015-10-26 09:59:58.000000000 -0700
-+++ source-new/lib/sh/Makefile.in	2017-08-07 19:12:46.587180259 -0700
-@@ -83,7 +83,7 @@
- # The C code source files for this library.
- CSOURCES = clktck.c clock.c getcwd.c getenv.c oslib.c setlinebuf.c \
- 	   strcasecmp.c strerror.c strtod.c strtol.c strtoul.c \
--	   vprint.c itos.c rename.c zread.c zwrite.c shtty.c \
-+	   vprint.c itos.c rename.c zread.c zwrite.c \
- 	   inet_aton.c netconn.c netopen.c strpbrk.c timeval.c makepath.c \
- 	   pathcanon.c pathphys.c tmpfile.c stringlist.c stringvec.c spell.c \
- 	   shquote.c strtrans.c strcasestr.c snprintf.c mailstat.c \
-@@ -100,7 +100,7 @@
- # The object files contained in $(LIBRARY_NAME)
- LIBOBJS = @LIBOBJS@
- OBJECTS = clktck.o clock.o getenv.o oslib.o setlinebuf.o strnlen.o \
--	  itos.o zread.o zwrite.o shtty.o shmatch.o eaccess.o \
-+	  itos.o zread.o zwrite.o shmatch.o eaccess.o \
- 	  netconn.o netopen.o timeval.o makepath.o pathcanon.o \
- 	  pathphys.o tmpfile.o stringlist.o stringvec.o spell.o shquote.o \
- 	  strtrans.o snprintf.o mailstat.o fmtulong.o \
-@@ -174,7 +174,6 @@
- shmatch.o: shmatch.c
- shmbchar.o: shmbchar.c
- shquote.o: shquote.c
--shtty.o: shtty.c
- snprintf.o: snprintf.c
- spell.o: spell.c
- strcasecmp.o: strcasecmp.c
-@@ -251,7 +250,6 @@
- shmatch.o: ${BUILD_DIR}/config.h
- shmbchar.o: ${BUILD_DIR}/config.h
- shquote.o: ${BUILD_DIR}/config.h
--shtty.o: ${BUILD_DIR}/config.h
- snprintf.o: ${BUILD_DIR}/config.h
- spell.o: ${BUILD_DIR}/config.h
- strcasecmp.o: ${BUILD_DIR}/config.h
-@@ -411,9 +409,6 @@
- shquote.o: ${BASHINCDIR}/ansi_stdlib.h ${topdir}/xmalloc.h
- shquote.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
- 
--shtty.o: ${BASHINCDIR}/shtty.h
--shtty.o: ${BASHINCDIR}/stdc.h
--
- snprintf.o: ${BASHINCDIR}/stdc.h ${topdir}/bashansi.h ${topdir}/xmalloc.h
- snprintf.o: ${BASHINCDIR}/ansi_stdlib.h ${BASHINCDIR}/chartypes.h
- snprintf.o: ${BASHINCDIR}/shmbutil.h ${BASHINCDIR}/shmbchar.h
 diff -ru source/lib/sh/oslib.c source-new/lib/sh/oslib.c
 --- source/lib/sh/oslib.c	2013-10-14 06:12:57.000000000 -0700
 +++ source-new/lib/sh/oslib.c	2017-08-07 19:10:21.375838312 -0700

+#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)

-      old = sigblock (new);
+      //old = sigblock (new);
       break;

     case SIG_SETMASK:
-      old = sigsetmask (new);
+      //old = sigsetmask (new);
       break;

     default:
