Thu May 9 14:04:42 2013 UTC ()
Allow building with libc++. Add some missing includes.
(joerg)
diff -r1.23 -r1.24 pkgsrc/www/webkit-gtk/Makefile.common
diff -r1.61 -r1.62 pkgsrc/www/webkit-gtk/distinfo
diff -r1.1 -r1.2 pkgsrc/www/webkit-gtk/patches/patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_Atomics.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_RefCountedLeakCounter.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WTF_wtf_ThreadSafeRefCounted.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WebCore_Modules_webaudio_AudioContext.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WebCore_Modules_webaudio_AudioNode.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WebCore_platform_gtk_FileSystemGtk.cpp
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WebCore_platform_network_DNSResolveQueue.h
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Source_WebKit2_WebProcess_WebCoreSupport_WebPlatformStrategies.cpp
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Tools_DumpRenderTree_gtk_DumpRenderTree.cpp
diff -r0 -r1.1 pkgsrc/www/webkit-gtk/patches/patch-Tools_DumpRenderTree_gtk_ImageDiff.cpp
--- pkgsrc/www/webkit-gtk/Attic/Makefile.common 2013/04/10 11:16:39 1.23
+++ pkgsrc/www/webkit-gtk/Attic/Makefile.common 2013/05/09 14:04:42 1.24
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.23 2013/04/10 11:16:39 drochner Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.24 2013/05/09 14:04:42 joerg Exp $ |
2 | # used by www/webkit-gtk/Makefile | | 2 | # used by www/webkit-gtk/Makefile |
3 | # used by www/webkit-gtk3/Makefile | | 3 | # used by www/webkit-gtk3/Makefile |
4 | | | 4 | |
5 | DISTNAME= webkitgtk-1.10.2 | | 5 | DISTNAME= webkitgtk-1.10.2 |
6 | CATEGORIES= www | | 6 | CATEGORIES= www |
7 | MASTER_SITES= http://www.webkitgtk.org/releases/ | | 7 | MASTER_SITES= http://www.webkitgtk.org/releases/ |
8 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.webkitgtk.org/ | | 11 | HOMEPAGE= http://www.webkitgtk.org/ |
12 | | | 12 | |
13 | DISTINFO_FILE= ${.CURDIR}/../../www/webkit-gtk/distinfo | | 13 | DISTINFO_FILE= ${.CURDIR}/../../www/webkit-gtk/distinfo |
14 | PATCHDIR= ${.CURDIR}/../../www/webkit-gtk/patches | | 14 | PATCHDIR= ${.CURDIR}/../../www/webkit-gtk/patches |
| @@ -41,26 +41,31 @@ REPLACE_PERL+= Source/JavaScriptCore/cre | | | @@ -41,26 +41,31 @@ REPLACE_PERL+= Source/JavaScriptCore/cre |
41 | Source/WebCore/make-hash-tools.pl \ | | 41 | Source/WebCore/make-hash-tools.pl \ |
42 | Source/WebCore/platform/text/mac/*.pl | | 42 | Source/WebCore/platform/text/mac/*.pl |
43 | | | 43 | |
44 | .include "../../lang/ruby/rubyversion.mk" | | 44 | .include "../../lang/ruby/rubyversion.mk" |
45 | BUILD_DEPENDS+= ${RUBY_BASE}>=${RUBY_VERSION}:../../lang/${RUBY_BASE} | | 45 | BUILD_DEPENDS+= ${RUBY_BASE}>=${RUBY_VERSION}:../../lang/${RUBY_BASE} |
46 | CONFIGURE_ENV+= RUBY=${RUBY} | | 46 | CONFIGURE_ENV+= RUBY=${RUBY} |
47 | | | 47 | |
48 | PYTHON_FOR_BUILD_ONLY= yes | | 48 | PYTHON_FOR_BUILD_ONLY= yes |
49 | .include "../../lang/python/application.mk" | | 49 | .include "../../lang/python/application.mk" |
50 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN} | | 50 | CONFIGURE_ENV+= PYTHON=${PYTHONBIN} |
51 | | | 51 | |
52 | CXXFLAGS.SunOS+= -fpermissive | | 52 | CXXFLAGS.SunOS+= -fpermissive |
53 | | | 53 | |
| | | 54 | .include "../../mk/compiler.mk" |
| | | 55 | .if !empty(PKGSRC_COMPILER:Mclang) |
| | | 56 | CXXFLAGS+= -std=c++11 -Wno-c++11-narrowing |
| | | 57 | .endif |
| | | 58 | |
54 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1 | | 59 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1 |
55 | .include "../../devel/glib2/buildlink3.mk" | | 60 | .include "../../devel/glib2/buildlink3.mk" |
56 | .include "../../devel/zlib/buildlink3.mk" | | 61 | .include "../../devel/zlib/buildlink3.mk" |
57 | .include "../../databases/sqlite3/buildlink3.mk" | | 62 | .include "../../databases/sqlite3/buildlink3.mk" |
58 | .include "../../devel/flex/buildlink3.mk" | | 63 | .include "../../devel/flex/buildlink3.mk" |
59 | .include "../../devel/gperf/buildlink3.mk" | | 64 | .include "../../devel/gperf/buildlink3.mk" |
60 | # This is optional, but needs testing. | | 65 | # This is optional, but needs testing. |
61 | #.include "../../devel/pango/buildlink3.mk" | | 66 | #.include "../../devel/pango/buildlink3.mk" |
62 | # A correct Webkit build requires flex 2.5.33 | | 67 | # A correct Webkit build requires flex 2.5.33 |
63 | .include "../../graphics/freetype2/buildlink3.mk" | | 68 | .include "../../graphics/freetype2/buildlink3.mk" |
64 | .include "../../mk/jpeg.buildlink3.mk" | | 69 | .include "../../mk/jpeg.buildlink3.mk" |
65 | BUILDLINK_API_DEPENDS.png+= png>=1.5.1beta08 | | 70 | BUILDLINK_API_DEPENDS.png+= png>=1.5.1beta08 |
66 | .include "../../graphics/png/buildlink3.mk" | | 71 | .include "../../graphics/png/buildlink3.mk" |
--- pkgsrc/www/webkit-gtk/distinfo 2013/04/10 11:16:39 1.61
+++ pkgsrc/www/webkit-gtk/distinfo 2013/05/09 14:04:42 1.62
| @@ -1,18 +1,28 @@ | | | @@ -1,18 +1,28 @@ |
1 | $NetBSD: distinfo,v 1.61 2013/04/10 11:16:39 drochner Exp $ | | 1 | $NetBSD: distinfo,v 1.62 2013/05/09 14:04:42 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (webkitgtk-1.10.2.tar.xz) = 733ca23157eb8dd072d57becf325799c00bde630 | | 3 | SHA1 (webkitgtk-1.10.2.tar.xz) = 733ca23157eb8dd072d57becf325799c00bde630 |
4 | RMD160 (webkitgtk-1.10.2.tar.xz) = 91e6b8bcd4bb8234271dd6c6ebdba63dd1c0840e | | 4 | RMD160 (webkitgtk-1.10.2.tar.xz) = 91e6b8bcd4bb8234271dd6c6ebdba63dd1c0840e |
5 | Size (webkitgtk-1.10.2.tar.xz) = 8633640 bytes | | 5 | Size (webkitgtk-1.10.2.tar.xz) = 8633640 bytes |
6 | SHA1 (patch-Source_JavaScriptCore_heap_MachineStackMarker.cpp) = c5e1efdac5f6e2a4c035b6a3ce808d0e7a076703 | | 6 | SHA1 (patch-Source_JavaScriptCore_heap_MachineStackMarker.cpp) = c5e1efdac5f6e2a4c035b6a3ce808d0e7a076703 |
7 | SHA1 (patch-Source_JavaScriptCore_wtf_Threading.h) = f166335d829aba9051c1aaf1b950ec655deef372 | | 7 | SHA1 (patch-Source_JavaScriptCore_wtf_Threading.h) = f166335d829aba9051c1aaf1b950ec655deef372 |
8 | SHA1 (patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h) = 462e62d9078ef90df8cdeccbb64b0d2ccde5f11e | | 8 | SHA1 (patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h) = ce9766427bebd4aac0b8c7fc2c12cc0ed75150d5 |
| | | 9 | SHA1 (patch-Source_WTF_wtf_Atomics.h) = 3cc890798e7e956b75c2a181eca4a4d05cb545fc |
9 | SHA1 (patch-Source_WTF_wtf_MathExtras.h) = f922736410d49e7d7d1a459bffd3dffd0364e85a | | 10 | SHA1 (patch-Source_WTF_wtf_MathExtras.h) = f922736410d49e7d7d1a459bffd3dffd0364e85a |
| | | 11 | SHA1 (patch-Source_WTF_wtf_RefCountedLeakCounter.h) = 3cdf53f9735675bff83b48a81db59c3512f306e3 |
| | | 12 | SHA1 (patch-Source_WTF_wtf_ThreadSafeRefCounted.h) = c068f8b248b8864eeaa582fa096eca279f06890e |
| | | 13 | SHA1 (patch-Source_WebCore_Modules_webaudio_AudioContext.h) = 121b67efd25af6982f02a19d0b9e1e26be89e782 |
| | | 14 | SHA1 (patch-Source_WebCore_Modules_webaudio_AudioNode.h) = 1d22889087504d8fd42f38f72bde777850a4e767 |
10 | SHA1 (patch-Source_WebCore_bindings_js_JSInspectorFrontendHostCustom.cpp) = b331ad70a9c6a133c854b65452bad4ae3558e2e6 | | 15 | SHA1 (patch-Source_WebCore_bindings_js_JSInspectorFrontendHostCustom.cpp) = b331ad70a9c6a133c854b65452bad4ae3558e2e6 |
11 | SHA1 (patch-Source_WebCore_editing_Editor.h) = 43562577dd6432a86fd8ee0a1e7bb0db31f07d2d | | 16 | SHA1 (patch-Source_WebCore_editing_Editor.h) = 43562577dd6432a86fd8ee0a1e7bb0db31f07d2d |
| | | 17 | SHA1 (patch-Source_WebCore_platform_gtk_FileSystemGtk.cpp) = 76e6e3e662edcfb7e327f2e475709a105d146e50 |
| | | 18 | SHA1 (patch-Source_WebCore_platform_network_DNSResolveQueue.h) = ba2960eeda95189a85744112b2533e66599eb4b7 |
12 | SHA1 (patch-Source_WebCore_platform_sql_SQLiteDatabase.cpp) = 0f33b188b242166584d5725060c5c430a819be61 | | 19 | SHA1 (patch-Source_WebCore_platform_sql_SQLiteDatabase.cpp) = 0f33b188b242166584d5725060c5c430a819be61 |
| | | 20 | SHA1 (patch-Source_WebKit2_WebProcess_WebCoreSupport_WebPlatformStrategies.cpp) = 92f4016fe65fc6162b7f6dfcdc4c6ea2f5204b02 |
| | | 21 | SHA1 (patch-Tools_DumpRenderTree_gtk_DumpRenderTree.cpp) = 816cecbcb8ddf4af65265f5e76745b93f1055904 |
| | | 22 | SHA1 (patch-Tools_DumpRenderTree_gtk_ImageDiff.cpp) = 36013247ccbc2df274762acb49304511c06cb0f7 |
13 | SHA1 (patch-ai) = 8df303ffde5c4398e56601c524e9ab4aff52096c | | 23 | SHA1 (patch-ai) = 8df303ffde5c4398e56601c524e9ab4aff52096c |
14 | SHA1 (patch-aj) = 930d1b5d73028b2f2e5abb33c15f72befadc64ce | | 24 | SHA1 (patch-aj) = 930d1b5d73028b2f2e5abb33c15f72befadc64ce |
15 | SHA1 (patch-ak) = 64ad843164f1c12968e933080e0966a9019abfdf | | 25 | SHA1 (patch-ak) = 64ad843164f1c12968e933080e0966a9019abfdf |
16 | SHA1 (patch-al) = dd7201d0a5dcc0f173a156f3bb42e1417bef6b06 | | 26 | SHA1 (patch-al) = dd7201d0a5dcc0f173a156f3bb42e1417bef6b06 |
17 | SHA1 (patch-am) = 9516994b630b43c7c234f61debf8d762cf7aee97 | | 27 | SHA1 (patch-am) = 9516994b630b43c7c234f61debf8d762cf7aee97 |
18 | SHA1 (patch-configure) = 448caea068344fe987e566f73b3f567dad7b93ed | | 28 | SHA1 (patch-configure) = 448caea068344fe987e566f73b3f567dad7b93ed |
--- pkgsrc/www/webkit-gtk/patches/patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h 2012/11/22 18:20:49 1.1
+++ pkgsrc/www/webkit-gtk/patches/patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h 2013/05/09 14:04:42 1.2
| @@ -1,12 +1,36 @@ | | | @@ -1,12 +1,36 @@ |
1 | $NetBSD: patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h,v 1.1 2012/11/22 18:20:49 marino Exp $ | | 1 | $NetBSD: patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h,v 1.2 2013/05/09 14:04:42 joerg Exp $ |
2 | | | 2 | |
3 | --- Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h.orig 2012-04-22 23:26:47.000000000 +0000 | | 3 | --- Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h.orig 2012-05-12 19:43:43.000000000 +0000 |
4 | +++ Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h | | 4 | +++ Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h |
5 | @@ -173,6 +173,7 @@ | | 5 | @@ -35,6 +35,7 @@ |
| | | 6 | |
| | | 7 | #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ |
| | | 8 | #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ |
| | | 9 | +#include <ciso646> |
| | | 10 | |
| | | 11 | // The user can define the following macros in the build script to |
| | | 12 | // control Google Test's behavior. If the user doesn't define a macro |
| | | 13 | @@ -173,6 +174,7 @@ |
6 | #include <stdlib.h> | | 14 | #include <stdlib.h> |
7 | #include <stdio.h> | | 15 | #include <stdio.h> |
8 | #include <string.h> | | 16 | #include <string.h> |
9 | +#include <unistd.h> | | 17 | +#include <unistd.h> |
10 | #ifndef _WIN32_WCE | | 18 | #ifndef _WIN32_WCE |
11 | #include <sys/stat.h> | | 19 | #include <sys/stat.h> |
12 | #endif // !_WIN32_WCE | | 20 | #endif // !_WIN32_WCE |
| | | 21 | @@ -443,7 +445,14 @@ |
| | | 22 | // GCC 4.0+ implements tr1/tuple in the <tr1/tuple> header. This does |
| | | 23 | // not conform to the TR1 spec, which requires the header to be <tuple>. |
| | | 24 | |
| | | 25 | -#if !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302 |
| | | 26 | +#if defined(_LIBCPP_VERSION) |
| | | 27 | +#include <tuple> |
| | | 28 | +namespace std { |
| | | 29 | + namespace tr1 { |
| | | 30 | + using ::std::tuple; |
| | | 31 | + } |
| | | 32 | +} |
| | | 33 | +#elif !GTEST_HAS_RTTI && GTEST_GCC_VER_ < 40302 |
| | | 34 | // Until version 4.3.2, gcc has a bug that causes <tr1/functional>, |
| | | 35 | // which is #included by <tr1/tuple>, to not compile when RTTI is |
| | | 36 | // disabled. _TR1_FUNCTIONAL is the header guard for |
$NetBSD: patch-Source_WTF_wtf_Atomics.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WTF/wtf/Atomics.h.orig 2012-11-23 20:12:16.000000000 +0000
+++ Source/WTF/wtf/Atomics.h
@@ -72,7 +72,10 @@
#elif OS(ANDROID)
#include <sys/atomics.h>
#elif COMPILER(GCC)
-#if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2))) && !defined(__LSB_VERSION__)
+#include <ciso646>
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <atomic>
+#elif ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2))) && !defined(__LSB_VERSION__)
#include <ext/atomicity.h>
#else
#include <bits/atomicity.h>
@@ -112,6 +115,11 @@ inline int atomicDecrement(int volatile*
inline int atomicIncrement(int volatile* addend) { return __atomic_inc(addend) + 1; }
inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend) - 1; }
+#elif defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1
+inline int atomicIncrement(std::atomic<int> * addend) { return *addend++; }
+inline int atomicDecrement(std::atomic<int> * addend) { return *addend--; }
+
#elif COMPILER(GCC) && !CPU(SPARC64) // sizeof(_Atomic_word) != sizeof(int) on sparc64 gcc
#define WTF_USE_LOCKFREE_THREADSAFEREFCOUNTED 1
@@ -227,9 +235,16 @@ inline void memoryBarrierBeforeUnlock()
#endif
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+typedef std::atomic<int> atomic_int;
+#else
+typedef int volatile atomic_int;
+#endif
+
} // namespace WTF
#if USE(LOCKFREE_THREADSAFEREFCOUNTED)
+using WTF::atomic_int;
using WTF::atomicDecrement;
using WTF::atomicIncrement;
#endif
$NetBSD: patch-Source_WTF_wtf_RefCountedLeakCounter.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WTF/wtf/RefCountedLeakCounter.h.orig 2013-05-08 07:48:32.000000000 +0000
+++ Source/WTF/wtf/RefCountedLeakCounter.h
@@ -38,11 +38,7 @@ namespace WTF {
#ifndef NDEBUG
private:
-#if COMPILER(MINGW) || COMPILER(MSVC7_OR_LOWER) || OS(WINCE)
- int m_count;
-#else
- volatile int m_count;
-#endif
+ atomic_int m_count;
const char* m_description;
#endif
};
$NetBSD: patch-Source_WTF_wtf_ThreadSafeRefCounted.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WTF/wtf/ThreadSafeRefCounted.h.orig 2013-05-08 07:46:55.000000000 +0000
+++ Source/WTF/wtf/ThreadSafeRefCounted.h
@@ -96,7 +96,7 @@ public:
#if !USE(LOCKFREE_THREADSAFEREFCOUNTED)
MutexLocker locker(m_mutex);
#endif
- return static_cast<int const volatile &>(m_refCount);
+ return m_refCount;
}
protected:
@@ -123,7 +123,7 @@ protected:
}
private:
- int m_refCount;
+ atomic_int m_refCount;
#if !USE(LOCKFREE_THREADSAFEREFCOUNTED)
mutable Mutex m_mutex;
#endif
$NetBSD: patch-Source_WebCore_Modules_webaudio_AudioContext.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WebCore/Modules/webaudio/AudioContext.h.orig 2013-05-08 08:53:03.000000000 +0000
+++ Source/WebCore/Modules/webaudio/AudioContext.h
@@ -333,7 +333,7 @@ private:
enum { MaxNumberOfChannels = 32 };
// Number of AudioBufferSourceNodes that are active (playing).
- int m_activeSourceCount;
+ atomic_int m_activeSourceCount;
};
} // WebCore
$NetBSD: patch-Source_WebCore_Modules_webaudio_AudioNode.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WebCore/Modules/webaudio/AudioNode.h.orig 2013-05-08 08:53:26.000000000 +0000
+++ Source/WebCore/Modules/webaudio/AudioNode.h
@@ -178,8 +178,8 @@ private:
double m_lastNonSilentTime;
// Ref-counting
- volatile int m_normalRefCount;
- volatile int m_connectionRefCount;
+ atomic_int m_normalRefCount;
+ atomic_int m_connectionRefCount;
bool m_isMarkedForDeletion;
bool m_isDisabled;
$NetBSD: patch-Source_WebCore_platform_gtk_FileSystemGtk.cpp,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WebCore/platform/gtk/FileSystemGtk.cpp.orig 2012-11-23 20:12:17.000000000 +0000
+++ Source/WebCore/platform/gtk/FileSystemGtk.cpp
@@ -222,7 +222,7 @@ CString sharedResourcesPath()
GOwnPtr<gchar> runtimeDir(g_win32_get_package_installation_directory_of_module(hmodule));
GOwnPtr<gchar> dataPath(g_build_filename(runtimeDir.get(), "share", "webkitgtk-"WEBKITGTK_API_VERSION_STRING, NULL));
#else
- GOwnPtr<gchar> dataPath(g_build_filename(DATA_DIR, "webkitgtk-"WEBKITGTK_API_VERSION_STRING, NULL));
+ GOwnPtr<gchar> dataPath(g_build_filename(DATA_DIR, "webkitgtk-" WEBKITGTK_API_VERSION_STRING, NULL));
#endif
cachedPath = dataPath.get();
$NetBSD: patch-Source_WebCore_platform_network_DNSResolveQueue.h,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WebCore/platform/network/DNSResolveQueue.h.orig 2013-05-08 08:52:14.000000000 +0000
+++ Source/WebCore/platform/network/DNSResolveQueue.h
@@ -56,7 +56,7 @@ private:
void fired();
HashSet<String> m_names;
- int m_requestsInFlight;
+ atomic_int m_requestsInFlight;
};
}
$NetBSD: patch-Source_WebKit2_WebProcess_WebCoreSupport_WebPlatformStrategies.cpp,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp.orig 2013-05-08 08:54:13.000000000 +0000
+++ Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
@@ -118,7 +118,7 @@ void handleDidGetPlugins(uint64_t reques
static uint64_t generateRequestID()
{
- static int uniqueID;
+ static atomic_int uniqueID;
return atomicIncrement(&uniqueID);
}
$NetBSD: patch-Tools_DumpRenderTree_gtk_DumpRenderTree.cpp,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Tools/DumpRenderTree/gtk/DumpRenderTree.cpp.orig 2012-11-23 20:12:19.000000000 +0000
+++ Tools/DumpRenderTree/gtk/DumpRenderTree.cpp
@@ -46,6 +46,7 @@
#include "WorkQueueItem.h"
#include <JavaScriptCore/JavaScript.h>
#include <cassert>
+#include <clocale>
#include <cstdlib>
#include <cstring>
#include <getopt.h>
$NetBSD: patch-Tools_DumpRenderTree_gtk_ImageDiff.cpp,v 1.1 2013/05/09 14:04:42 joerg Exp $
--- Tools/DumpRenderTree/gtk/ImageDiff.cpp.orig 2013-05-02 21:03:34.000000000 +0000
+++ Tools/DumpRenderTree/gtk/ImageDiff.cpp
@@ -30,6 +30,7 @@
#include <algorithm>
#include <cmath>
#include <cstdio>
+#include <cstdlib>
#include <cstring>
#include <gdk/gdk.h>
@@ -157,7 +158,7 @@ void printImage(GdkPixbuf* image)
return; // Don't bail out, as we can still use the percentage output.
}
- printf("Content-Length: %"G_GSIZE_FORMAT"\n", bufferSize);
+ printf("Content-Length: %" G_GSIZE_FORMAT "\n", bufferSize);
fwrite(buffer, 1, bufferSize, stdout);
}