Fix FTBFS on GNU/kFreeBSD caused by missing strnstr() on glibc systems.
authorFathi Boudra <fabo@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
committerAdrian Bunk <bunk@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
Bug: https://bugs.webkit.org/show_bug.cgi?id=33903

Gbp-Pq: Name 51_kfreebsd_strnstr_build_fix.diff

src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h

index 605a0ed26f0b2650f4047443f8d99f3d17dcc0a7..e03cc436843561b0a6807545f030277fb1a09c3d 100644 (file)
 #endif
 
 /* OS(LINUX) - Linux */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define WTF_OS_LINUX 1
 #endif
 
index e8b03be124d6880581af4dcc14c83564e2bd1ea8..5f6333a3c3ff78f5467c2f996fa9ae4aed49405a 100644 (file)
 #endif
 
 /* OS(LINUX) - Linux */
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #define WTF_OS_LINUX 1
 #endif