[compiler-rt] 2833a2e - [Sanitizers] netbsd build fix due to wordexp interception.

David Carlier via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 4 04:51:07 PDT 2021


Author: David Carlier
Date: 2021-09-04T12:50:28+01:00
New Revision: 2833a2edac7d21965e7a27707dba2ef4bc37a4d2

URL: https://github.com/llvm/llvm-project/commit/2833a2edac7d21965e7a27707dba2ef4bc37a4d2
DIFF: https://github.com/llvm/llvm-project/commit/2833a2edac7d21965e7a27707dba2ef4bc37a4d2.diff

LOG: [Sanitizers] netbsd build fix due to wordexp interception.

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
    compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
index c8f2aa5dba4af..531e07f2d4c57 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp
@@ -666,6 +666,7 @@ 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;
 

diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
index 9e28dcfef0415..9407803fc9c39 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
@@ -394,6 +394,7 @@ struct __sanitizer_glob_t {
 
 extern int glob_nomatch;
 extern int glob_altdirfunc;
+extern const int wordexp_wrde_dooffs;
 
 extern unsigned path_max;
 


        


More information about the llvm-commits mailing list