  #endif
  #endif
  
-diff -buNr 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	2009-11-12 10:11:27.115870000 +0100
-+++ newlib-1.17.0/newlib/libc/include/sys/lock.h	2009-11-12 10:12:17.143222000 +0100
+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	2009-10-28 10:45:37.231019000 -0700
++++ newlib-1.17.0/newlib/libc/include/sys/lock.h	2009-10-28 10:48:02.375538000 -0700
 @@ -1,24 +1,58 @@
  #ifndef __SYS_LOCK_H__
  #define __SYS_LOCK_H__

 #if defined(__arm__) || defined(__thumb__)
 /*
  * All callee preserved registers:
diff -buNr newlib-1.17.0.orig/newlib/libc/include/sys/config.h newlib-1.17.0/newlib/libc/include/sys/config.h
--- newlib-1.17.0.orig/newlib/libc/include/sys/config.h	2009-11-12 10:11:27.089872000 +0100
+++ newlib-1.17.0/newlib/libc/include/sys/config.h	2009-11-12 10:12:17.043224000 +0100
@@ -59,15 +59,17 @@
 /* in other words, go32 */
 #define _FLOAT_RET double

+#define __lock_release_recursive(NAME) __local_lock_release_recursive(&(NAME))
 
 #endif /* __SYS_LOCK_H__ */
diff -uNr newlib-1.17.0.orig/newlib/libc/include/sys/reent.h newlib-1.17.0/newlib/libc/include/sys/reent.h
--- newlib-1.17.0.orig/newlib/libc/include/sys/reent.h	2009-10-28 10:45:37.275074000 -0700
+++ newlib-1.17.0/newlib/libc/include/sys/reent.h	2009-10-28 10:48:02.379549000 -0700
@@ -809,7 +809,7 @@
 #define __ATTRIBUTE_IMPURE_PTR__
 #endif
