LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 06_kfreebsd_strnstr.diff of Package qtwebkit (Project home:jsuarezr:LibrePlan)

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/JavaScriptCore/wtf/Platform.h
+++ b/JavaScriptCore/wtf/Platform.h
@@ -367,7 +367,7 @@
 #endif
 
 /* OS(LINUX) - Linux */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define WTF_OS_LINUX 1
 #endif