  
  subdirs="$subdirs netware"
 diff -uNr newlib-1.17.0.orig/newlib/libc/sys/nacl/Makefile.am newlib-1.17.0/newlib/libc/sys/nacl/Makefile.am
---- newlib-1.17.0.orig/newlib/libc/sys/nacl/Makefile.am	1970-01-01 01:00:00.000000000 +0100
-+++ newlib-1.17.0/newlib/libc/sys/nacl/Makefile.am	2009-06-24 19:39:03.000000000 +0200
+--- newlib-1.17.0.orig/newlib/libc/sys/nacl/Makefile.am	1969-12-31 16:00:00.000000000 -0800
++++ newlib-1.17.0/newlib/libc/sys/nacl/Makefile.am	2009-10-28 10:48:02.599517000 -0700
 @@ -0,0 +1,18 @@
 +## Process this file with automake to generate Makefile.in
 +

 #endif
 
diff -uNr newlib-1.17.0.orig/newlib/libc/include/sys/lock.h newlib-1.17.0/newlib/libc/include/sys/lock.h
--- newlib-1.17.0.orig/newlib/libc/include/sys/lock.h	2008-12-11 18:27:55.000000000 +0100
+++ newlib-1.17.0/newlib/libc/include/sys/lock.h	2009-06-24 19:39:03.000000000 +0200
@@ -1,24 +1,58 @@
 #ifndef __SYS_LOCK_H__
 #define __SYS_LOCK_H__

+  popl ecx
+  nacljmp ecx
diff -uNr newlib-1.17.0.orig/newlib/libc/machine/i386/memmove.S newlib-1.17.0/newlib/libc/machine/i386/memmove.S
--- newlib-1.17.0.orig/newlib/libc/machine/i386/memmove.S	2009-10-28 10:45:32.949349000 -0700
+++ newlib-1.17.0/newlib/libc/machine/i386/memmove.S	2009-10-28 10:48:02.519528000 -0700
@@ -13,6 +13,7 @@
 	.global SYM (memmove)
        SOTYPE_FUNCTION(memmove)
