Skip to content

Commit ff82716

Browse files
committed
[lldb] Android 9 has added the spawn.h header
1 parent 753028b commit ff82716

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@
2626
#include <mach/mach_port.h>
2727
#endif
2828

29+
#ifdef __ANDROID__
30+
#include <android/api-level.h>
31+
#endif
32+
2933
#if defined(__linux__) || defined(__FreeBSD__) || \
3034
defined(__FreeBSD_kernel__) || defined(__APPLE__) || \
3135
defined(__NetBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__)
32-
#if !defined(__ANDROID__)
36+
#if !defined(__ANDROID__) || __ANDROID_API__ >= 28
3337
#include <spawn.h>
3438
#endif
3539
#include <sys/syscall.h>

0 commit comments

Comments
 (0)