Skip to content

Commit 02bb403

Browse files
committed
chromium: Add patch to include sys/stat.h
Needed on musl with latest update Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 parent 5959a2a commit 02bb403

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
@@ -46,6 +46,7 @@ SRC_URI:append:libc-musl = "\
4646
file://musl/0019-adjust-thread-stack-sizes.patch \
4747
file://musl/0020-Fix-tab-crashes-on-musl.patch \
4848
file://musl/0021-pthread_getname_np.patch \
49+
file://musl/0022-sys-stat.patch \
4950
file://musl/scoped-file.patch \
5051
file://musl/fix-narrowing-cast.patch \
5152
"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Include sys/stat.h for stat64 definition
2+
3+
fixes
4+
In file included from ../../base/files/file_enumerator.cc:5:
5+
../../base/files/file_enumerator.h:78:20: error: field has incomplete type 'base::stat_wrapper_t' (aka 'stat64')
6+
stat_wrapper_t stat_;
7+
^
8+
../../base/files/file.h:28:8: note: forward declaration of 'stat64'
9+
struct stat64;
10+
^
11+
1 error generated.
12+
13+
14+
Upstream-Status: Pending
15+
16+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
17+
18+
--- a/base/files/file.h
19+
+++ b/base/files/file.h
20+
@@ -8,6 +8,7 @@
21+
#include <stdint.h>
22+
23+
#include <string>
24+
+#include <sys/stat.h>
25+
26+
#include "base/base_export.h"
27+
#include "base/containers/span.h"

0 commit comments

Comments
 (0)