qt4-x11 (4:4.6.3-4+squeeze1) 51_kfreebsd_strnstr_build_fix.diff

Summary

 src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h |    2 +-
 src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

Description: Fix FTBFS on GNU/kFreeBSD caused by missing strnstr() on glibc systems.
Author: Fathi Boudra <fabo@debian.org>
Bug: https://bugs.webkit.org/show_bug.cgi?id=33903

--- a/src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h
@@ -68,7 +68,7 @@
 /* PLATFORM(LINUX) */
 /* Operating system level dependencies for Linux-like systems that */
 /* should be used regardless of operating environment */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define WTF_PLATFORM_LINUX 1
 #endif
 
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
@@ -68,7 +68,7 @@
 /* PLATFORM(LINUX) */
 /* Operating system level dependencies for Linux-like systems that */
 /* should be used regardless of operating environment */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define WTF_PLATFORM_LINUX 1
 #endif