fix newlib breakage
[nestedvm.git] / upstream / patches / newlib-mips.patch
index 5746917..a01f0cc 100644 (file)
@@ -105,7 +105,7 @@ diff -urN ../newlib-1.11.0.orig/newlib/configure.host ./newlib/configure.host
        syscall_dir=syscalls
        ;;
 +  mips*-unknown-elf*)
-+       newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL -DHAVE_OPENDIR"
++       newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_GETTIMEOFDAY -DHAVE_FCNTL -DHAVE_OPENDIR -DWANT_PRINTF_LONG_LONG"
 +       syscall_dir=syscalls
 +        ;;
    mmix-*)
@@ -237,3 +237,26 @@ diff -rNu ../newlib-1.11.0.orig/newlib/libc/include/sys/dirent.h ./newlib/libc/i
  #ifdef __cplusplus
  }
  #endif
+--- newlib/libc/include/sys/signal.h~  2004-05-07 02:06:28.000000000 -0400
++++ newlib/libc/include/sys/signal.h   2004-05-07 02:06:28.000000000 -0400
+@@ -145,7 +145,7 @@
+ int _EXFUN(kill, (int, int));
+ /* protos for functions found in winsup sources for CYGWIN */
+-#if defined(__CYGWIN__) || defined(__rtems__)
++#if defined(__CYGWIN__) || defined(__rtems__) || 1
+ #undef sigaddset
+ #undef sigemptyset
+ /* The first argument to kill should be pid_t.  Right now
+--- newlib/libc/include/sys/signal.h.bak       2004-05-09 23:15:15.000000000 -0400
++++ newlib/libc/include/sys/signal.h   2004-05-09 23:16:33.000000000 -0400
+@@ -148,6 +148,9 @@
+ #if defined(__CYGWIN__) || defined(__rtems__) || 1
+ #undef sigaddset
+ #undef sigemptyset
++
++#include <sys/types.h>
++
+ /* The first argument to kill should be pid_t.  Right now
+    <sys/types.h> always defines pid_t to be int.  If that ever
+    changes, then we will need to do something else, perhaps along the