Skip to content

Commit 2f7bbe6

Browse files
authored
Don't include asl.h when SWIFT_STDLIB_HAS_ASL is not set (swiftlang#40176)
1 parent 2740e27 commit 2f7bbe6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/LLVMSupport/ErrorHandling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include <stdarg.h>
2828

29-
#if defined(__APPLE__)
29+
#if SWIFT_STDLIB_HAS_ASL
3030
#include <asl.h>
3131
#elif defined(__ANDROID__)
3232
#include <android/log.h>

stdlib/public/runtime/Errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#include <execinfo.h>
4848
#endif
4949

50-
#if defined(__APPLE__)
50+
#if SWIFT_STDLIB_HAS_ASL
5151
#include <asl.h>
5252
#elif defined(__ANDROID__)
5353
#include <android/log.h>

0 commit comments

Comments
 (0)