From 8bff78d7d3f862602bf81dde6b22eac78478f517 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 16 Jun 2011 17:18:43 +0200 Subject: fix some issues with uclibc --- .../patches/patch-content_base_public_nsContentUtils_h | 11 +++++++++++ .../patch-content_canvas_src_nsCanvasRenderingContext2D_cpp | 11 +++++++++++ package/firefox/patches/patch-js_src_ctypes_CTypes_cpp | 11 +++++++++++ package/firefox/patches/patch-xpcom_threads_nsThread_cpp | 11 +++++++++-- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 package/firefox/patches/patch-content_base_public_nsContentUtils_h create mode 100644 package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp create mode 100644 package/firefox/patches/patch-js_src_ctypes_CTypes_cpp (limited to 'package/firefox') diff --git a/package/firefox/patches/patch-content_base_public_nsContentUtils_h b/package/firefox/patches/patch-content_base_public_nsContentUtils_h new file mode 100644 index 000000000..2cd2821c7 --- /dev/null +++ b/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 + } + diff --git a/package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp b/package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp new file mode 100644 index 000000000..9a49b3cd6 --- /dev/null +++ b/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 + } + diff --git a/package/firefox/patches/patch-js_src_ctypes_CTypes_cpp b/package/firefox/patches/patch-js_src_ctypes_CTypes_cpp new file mode 100644 index 000000000..e7796d5d2 --- /dev/null +++ b/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 + } + diff --git a/package/firefox/patches/patch-xpcom_threads_nsThread_cpp b/package/firefox/patches/patch-xpcom_threads_nsThread_cpp index 67ef28c26..ebe95827e 100644 --- a/package/firefox/patches/patch-xpcom_threads_nsThread_cpp +++ b/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 #if defined(XP_UNIX) && !defined(ANDROID) && !defined(DEBUG) && HAVE_UALARM \ && defined(_GNU_SOURCE) -# define MOZ_CANARY # include ++#if !defined(__UCLIBC__) # include ++#endif # include + # include + # include "nsXULAppAPI.h" -- cgit v1.2.3