[Sanitizers] wordexp interceptor build fix on FreeBSD.
authorDavid Carlier <devnexen@gmail.com>
Fri, 27 Aug 2021 22:58:06 +0000 (23:58 +0100)
committerDavid Carlier <devnexen@gmail.com>
Fri, 27 Aug 2021 22:58:06 +0000 (23:58 +0100)
Reviewers: vitalybuka

Reviewed-By: vitalybuka
Differential Revision: https://reviews.llvm.org/D108838

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h

index b5a45ae..042ebde 100644 (file)
@@ -170,6 +170,7 @@ uptr __sanitizer_in_addr_sz(int af) {
 unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
 int glob_nomatch = GLOB_NOMATCH;
 int glob_altdirfunc = GLOB_ALTDIRFUNC;
+const int wordexp_wrde_dooffs = WRDE_DOOFFS;
 
 unsigned path_max = PATH_MAX;
 
index 5e0ca9c..72a1810 100644 (file)
@@ -366,6 +366,7 @@ struct __sanitizer_glob_t {
 
 extern int glob_nomatch;
 extern int glob_altdirfunc;
+extern const int wordexp_wrde_dooffs;
 
 extern unsigned path_max;