From cd7cde9f43b28b062bd1fb2d6a597861338ebf2b Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Mon, 24 Jan 2022 10:55:59 +0000 Subject: [PATCH] Fix FTBFS on GNU/kFreeBSD caused by missing strnstr() on glibc systems. 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 | 2 +- src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h index 605a0ed26..e03cc4368 100644 --- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h @@ -423,7 +423,7 @@ #endif /* OS(LINUX) - Linux */ -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) #define WTF_OS_LINUX 1 #endif diff --git a/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h b/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h index e8b03be12..5f6333a3c 100644 --- a/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h +++ b/src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h @@ -427,7 +427,7 @@ #endif /* OS(LINUX) - Linux */ -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) #define WTF_OS_LINUX 1 #endif -- 2.30.2