add #define __NESTEDVM__ to sys/config.h
authoradam <adam@megacz.com>
Sun, 4 Jan 2009 01:15:24 +0000 (17:15 -0800)
committeradam <adam@megacz.com>
Sun, 4 Jan 2009 01:15:24 +0000 (17:15 -0800)
darcs-hash:20090104011524-5007d-b1092b69e940b1f8ba81be34689ac5a3cc68f01e.gz

upstream/Makefile
upstream/patches/newlib-nestedvm-define.patch [new file with mode: 0644]

index eb2d8b4..0d717ba 100644 (file)
@@ -23,7 +23,7 @@ configure_binutils = --target=mips-unknown-elf
 
 version_newlib = 1.11.0
 url_newlib = ftp://sources.redhat.com/pub/newlib/newlib-$(version_newlib).tar.gz
-patches_newlib = newlib-mips.patch newlib-tzset.patch newlib-malloc.patch newlib-nomemcpy.patch newlib-unix.patch newlib-unistd.patch
+patches_newlib = newlib-mips.patch newlib-tzset.patch newlib-malloc.patch newlib-nomemcpy.patch newlib-unix.patch newlib-unistd.patch newlib-nestedvm-define.patch
 configure_newlib = --enable-multilib --target=mips-unknown-elf
 
 url_openbsdglob = http://www.brianweb.net/xwt/openbsdglob.tar.gz
diff --git a/upstream/patches/newlib-nestedvm-define.patch b/upstream/patches/newlib-nestedvm-define.patch
new file mode 100644 (file)
index 0000000..7af13a1
--- /dev/null
@@ -0,0 +1,13 @@
+--- newlib/libc/include/sys/config.h   2009-01-03 17:00:12.000000000 -0800
++++ newlib/libc/include/sys/config.h   2009-01-03 16:59:48.000000000 -0800
+@@ -3,6 +3,10 @@
+ #include <machine/ieeefp.h>  /* floating point macros */
++#ifndef __NESTEDVM__
++#define __NESTEDVM__
++#endif
++
+ /* exceptions first */
+ #if defined(__H8500__) || defined(__W65__)
+ #define __SMALL_BITFIELDS