From 669676b6357ef1fd9a5ab6e9ee776b36246d94e4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 27 Apr 2021 18:24:04 +0200 Subject: [PATCH] Ports: Build fix for gcc when building the port with gcc 11.1.0 --- Ports/gcc/patches/fenv.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Ports/gcc/patches/fenv.patch diff --git a/Ports/gcc/patches/fenv.patch b/Ports/gcc/patches/fenv.patch new file mode 100644 index 00000000000..cb90411fa34 --- /dev/null +++ b/Ports/gcc/patches/fenv.patch @@ -0,0 +1,20 @@ +diff -Naur gcc-11.1.0/libstdc++-v3/include/c_compatibility/fenv.h gcc-11.1.0.serenity/libstdc++-v3/include/c_compatibility/fenv.h +--- gcc-11.1.0/libstdc++-v3/include/c_compatibility/fenv.h 2021-04-27 12:00:16.000000000 +0200 ++++ gcc-11.1.0.serenity/libstdc++-v3/include/c_compatibility/fenv.h 2021-04-27 18:19:15.749373118 +0200 +@@ -26,8 +26,8 @@ + * This is a Standard C++ Library header. + */ + +-#ifndef _GLIBCXX_FENV_H +-#define _GLIBCXX_FENV_H 1 ++#ifndef _GLIBCXX_PORT_FENV_H ++#define _GLIBCXX_PORT_FENV_H 1 + + #pragma GCC system_header + +@@ -78,4 +78,4 @@ + + #endif // C++11 + +-#endif // _GLIBCXX_FENV_H ++#endif // _GLIBCXX_PORT_FENV_H