component(developer/golang-123): Add Component
[oi-userland.git] / components / developer / gcc-13 / patches / 0022-Fix-libsanitizer-build-for-illumos.patch
blob8f48314d93889a731cd3ed402dd30111bb5de935
1 From fc34ac853984f2cbf6845ff41930ddc9b7af8acb Mon Sep 17 00:00:00 2001
2 From: Aurelien Larcher <aurelien.larcher@gmail.com>
3 Date: Tue, 12 Nov 2019 15:01:57 +0000
4 Subject: Fix libsanitizer build for illumos
6 ---
7 .../sanitizer_platform_limits_solaris.h | 11 +++++++++++
8 1 file changed, 11 insertions(+)
10 diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_solaris.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_solaris.h
11 index 84a81265162c..f9c9b84dcadd 100644
12 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_solaris.h
13 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_solaris.h
14 @@ -19,6 +19,9 @@
15 #include "sanitizer_internal_defs.h"
16 #include "sanitizer_platform.h"
18 +struct stat;
19 +struct dirent;
21 namespace __sanitizer {
22 extern unsigned struct_utsname_sz;
23 extern unsigned struct_stat_sz;
24 @@ -337,6 +340,14 @@ struct __sanitizer_glob_t {
25 uptr gl_offs;
26 char **gl_pathp;
27 int gl_pathn;
28 + int gl_matchc;
29 + int gl_flags;
30 + struct stat **gl_statv;
31 + void (*gl_closedir)(void *);
32 + struct dirent *(*gl_readdir)(void *);
33 + void *(*gl_opendir)(const char *);
34 + int (*gl_lstat)(const char *, struct stat *);
35 + int (*gl_stat)(const char *, struct stat *);
38 extern int glob_nomatch;