Skip to content

Commit 8ec1550

Browse files
committed
Add SANITIZER_LINUX guard
1 parent 7558d41 commit 8ec1550

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,14 @@ static void KeepUnblocked(__sanitizer_sigset_t &newset,
177177

178178
// Block asynchronous signals
179179
void BlockSignals(__sanitizer_sigset_t *oldset) {
180+
# if SANITIZER_LINUX
180181
__sanitizer_sigset_t currentset;
182+
181183
# if !SANITIZER_ANDROID
182184
// FIXME: https://github.com/google/sanitizers/issues/1816
183185
SetSigProcMask(NULL, &currentset);
184-
# endif
186+
# endif // SANITIZER_ANDROID
187+
# endif // SANITIZER_LINUX
185188

186189
__sanitizer_sigset_t newset;
187190
internal_sigfillset(&newset);

0 commit comments

Comments
 (0)