Skip to content

Commit 36535f6

Browse files
krajotavio
authored andcommitted
chromium: Fix build with gcc-11
Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 parent bdde7ca commit 36535f6

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SRC_URI += " \
2121
file://0001-link-atomic-for-target-only.patch \
2222
file://0001-Fix-use-of-DCHECK-with-std-unique_ptr.patch \
2323
file://0001-IWYU-add-ctime-for-std-time.patch \
24+
file://0001-mojo-Include-string.h-for-strncpy-declaration.patch \
2425
"
2526

2627
SRC_URI_append_libc-musl = "\
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 6e37708d7e219cf53b3c2b5d3835d48c00b4ed63 Mon Sep 17 00:00:00 2001
2+
From: Khem Raj <raj.khem@gmail.com>
3+
Date: Wed, 10 Mar 2021 10:57:35 -0800
4+
Subject: [PATCH] mojo: Include string.h for strncpy declaration
5+
6+
Fixes
7+
named_platform_channel_posix.cc:53:3: error: use of undeclared identifier 'strncpy'
8+
---
9+
Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/chromium/src/+/2749538]
10+
mojo/public/cpp/platform/named_platform_channel_posix.cc | 1 +
11+
1 file changed, 1 insertion(+)
12+
13+
diff --git a/mojo/public/cpp/platform/named_platform_channel_posix.cc b/mojo/public/cpp/platform/named_platform_channel_posix.cc
14+
index 9082ac4da597..cbedae6c3c61 100644
15+
--- a/mojo/public/cpp/platform/named_platform_channel_posix.cc
16+
+++ b/mojo/public/cpp/platform/named_platform_channel_posix.cc
17+
@@ -5,6 +5,7 @@
18+
#include "mojo/public/cpp/platform/named_platform_channel.h"
19+
20+
#include <errno.h>
21+
+#include <string.h>
22+
#include <sys/socket.h>
23+
#include <sys/un.h>
24+
#include <unistd.h>
25+
--
26+
2.30.2
27+

0 commit comments

Comments
 (0)