do not use syscall on android (issue #1015)

This commit is contained in:
Daan 2025-02-18 16:02:52 -08:00
parent 3c13579fcf
commit 566ab5038b

View file

@ -57,7 +57,7 @@ terms of the MIT license. A copy of the license can be found in the file
#include <sys/sysctl.h>
#endif
#if defined(__linux__) || defined(__FreeBSD__)
#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__)
#define MI_HAS_SYSCALL_H
#include <sys/syscall.h>
#endif