Browse Source

fix some issues with uclibc

Waldemar Brodkorb 14 years ago
parent
commit
8bff78d7d3

+ 11 - 0
package/firefox/patches/patch-content_base_public_nsContentUtils_h

@@ -0,0 +1,11 @@
+--- mozilla-2.0.orig/content/base/public/nsContentUtils.h	2011-03-19 00:33:33.000000000 +0100
++++ mozilla-2.0/content/base/public/nsContentUtils.h	2011-06-15 20:05:44.538202220 +0200
+@@ -1942,7 +1942,7 @@ inline NS_HIDDEN_(PRBool) NS_FloatIsFini
+ #ifdef WIN32
+   return _finite(f);
+ #else
+-  return finite(f);
++  return isfinite(f);
+ #endif
+ }
+ 

+ 11 - 0
package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp

@@ -0,0 +1,11 @@
+--- mozilla-2.0.orig/content/canvas/src/nsCanvasRenderingContext2D.cpp	2011-03-19 00:33:34.000000000 +0100
++++ mozilla-2.0/content/canvas/src/nsCanvasRenderingContext2D.cpp	2011-06-15 20:26:00.226952311 +0200
+@@ -159,7 +159,7 @@ DoubleIsFinite(double d)
+     // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
+     return !!_finite(d);
+ #else
+-    return finite(d);
++    return isfinite(d);
+ #endif
+ }
+ 

+ 11 - 0
package/firefox/patches/patch-js_src_ctypes_CTypes_cpp

@@ -0,0 +1,11 @@
+--- mozilla-2.0.orig/js/src/ctypes/CTypes.cpp	2011-03-19 00:33:47.000000000 +0100
++++ mozilla-2.0/js/src/ctypes/CTypes.cpp	2011-06-15 05:56:10.076952202 +0200
+@@ -464,7 +464,7 @@ static inline bool FloatIsFinite(jsdoubl
+ #ifdef WIN32
+   return _finite(f) != 0;
+ #else
+-  return finite(f);
++  return isfinite(f);
+ #endif
+ }
+ 

+ 9 - 2
package/firefox/patches/patch-xpcom_threads_nsThread_cpp

@@ -1,10 +1,17 @@
 --- mozilla-2.0.orig/xpcom/threads/nsThread.cpp	2011-03-19 00:34:14.000000000 +0100
-+++ mozilla-2.0/xpcom/threads/nsThread.cpp	2011-04-24 08:56:39.000000000 +0200
-@@ -52,7 +52,6 @@
++++ mozilla-2.0/xpcom/threads/nsThread.cpp	2011-06-15 19:51:07.078202253 +0200
+@@ -50,11 +50,13 @@
+                       _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&           \
+                       !(_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)
  
++#include <features.h>
  #if defined(XP_UNIX) && !defined(ANDROID) && !defined(DEBUG) && HAVE_UALARM \
    && defined(_GNU_SOURCE)
 -# define MOZ_CANARY
  # include <unistd.h>
++#if !defined(__UCLIBC__)
  # include <execinfo.h>
++#endif
  # include <signal.h>
+ # include <fcntl.h>
+ # include "nsXULAppAPI.h"