Skip to content

Commit 63feb57

Browse files
gbaraldivchuravy
authored andcommitted
Make include conditional to macos
1 parent 41ae790 commit 63feb57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
#include "sanitizer_flags.h"
1717
#include "sanitizer_platform_interceptors.h"
1818

19+
#if !defined(__APPLE__)
1920
#include <malloc.h>
21+
#endif
2022

2123
namespace __sanitizer {
2224
#if SANITIZER_INTERCEPT_TLS_GET_ADDR

0 commit comments

Comments
 (0)