diff --git a/.files b/.files
index 9c0bbbc..b2f445a 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index fea1c92..ef9c303 100644
--- a/.rev
+++ b/.rev
@@ -15,4 +15,12 @@
867312
+
+ a29b32e7d1840cf2a933ce5faa08001e
+ 3.4.1
+
+ dimstar_suse
+
+ 891014
+
diff --git a/bazel-3.4.1-gcc11.patch b/bazel-3.4.1-gcc11.patch
new file mode 100644
index 0000000..93b597b
--- /dev/null
+++ b/bazel-3.4.1-gcc11.patch
@@ -0,0 +1,20 @@
+--- third_party/ijar/zlib_client.h.orig 2021-05-06 14:14:59.479849964 +0200
++++ third_party/ijar/zlib_client.h 2021-05-06 14:20:15.235724889 +0200
+@@ -15,6 +15,7 @@
+ #ifndef THIRD_PARTY_IJAR_ZLIB_CLIENT_H_
+ #define THIRD_PARTY_IJAR_ZLIB_CLIENT_H_
+
++#include
+ #include
+
+ #include "third_party/ijar/common.h"
+--- ./third_party/ijar/mapped_file_unix.cc.orig 2021-05-06 14:24:39.106939003 +0200
++++ ./third_party/ijar/mapped_file_unix.cc 2021-05-06 14:24:46.599029982 +0200
+@@ -19,6 +19,7 @@
+ #include
+
+ #include
++#include
+
+ #include "third_party/ijar/mapped_file.h"
+
diff --git a/bazel3.4.changes b/bazel3.4.changes
index 671ac7f..0af2657 100644
--- a/bazel3.4.changes
+++ b/bazel3.4.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu May 6 12:26:36 UTC 2021 - Richard Biener
+
+- Add bazel-3.4.1-gcc11.patch to add #include that are no longer
+ pulled implicitely by GCC 11 standard library. [boo#1181864]
+
+-------------------------------------------------------------------
Wed Jan 27 10:58:59 UTC 2021 - Guillaume GARDET
- Do not build on %arm - boo#1178564
diff --git a/bazel3.4.spec b/bazel3.4.spec
index d73acc8..90263df 100644
--- a/bazel3.4.spec
+++ b/bazel3.4.spec
@@ -1,7 +1,7 @@
#
-# spec file for package bazel3.0
+# spec file for package bazel3.4
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -41,6 +41,7 @@ URL: http://bazel.io/
Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{shortname}-%{version}-dist.zip
Source1: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{shortname}-%{version}-dist.zip.sig
Patch0: 0001-python-Always-use-python3.patch
+Patch1: bazel-3.4.1-gcc11.patch
BuildRequires: gcc-c++
BuildRequires: java-1_8_0-openjdk-devel
BuildRequires: pkgconfig
@@ -63,6 +64,7 @@ as mobile operating systems.
%prep
%setup -q -c
%patch0 -p1
+%patch1
# Remove executable permissions
chmod 0644 AUTHORS CHANGELOG.md CONTRIBUTORS LICENSE
# Use Python 3