[Sanitizers] wordexp interceptor build fix on FreeBSD.

Reviewers: vitalybuka

Reviewed-By: vitalybuka

Differential Revision: https://reviews.llvm.org/D108838
This commit is contained in:
David Carlier 2021-08-27 23:58:06 +01:00
parent 4dde7064e7
commit 84013d7093
2 changed files with 2 additions and 0 deletions

View 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;

View 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;