From 4960582500387e0b135e5b30ba9d79ef8a6c98fc Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 6 Oct 2021 15:30:54 +0800 Subject: [PATCH] third_party: Fix missing sgidefs.h for Musl --- src/third_party/abseil-cpp/absl/base/internal/direct_mmap.h | 2 +- src/third_party/lss/linux_syscall_support.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/third_party/abseil-cpp/absl/base/internal/direct_mmap.h b/src/third_party/abseil-cpp/absl/base/internal/direct_mmap.h index 274054cd5a..50f6584d54 100644 --- a/src/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +++ b/src/third_party/abseil-cpp/absl/base/internal/direct_mmap.h @@ -41,7 +41,7 @@ #ifdef __mips__ // Include definitions of the ABI currently in use. -#ifdef __BIONIC__ +#if defined(__BIONIC__) || defined(__MUSL__) // Android doesn't have sgidefs.h, but does have asm/sgidefs.h, which has the // definitions we need. #include diff --git a/src/third_party/lss/linux_syscall_support.h b/src/third_party/lss/linux_syscall_support.h index dd6c863c47..f6df5290d7 100644 --- a/src/third_party/lss/linux_syscall_support.h +++ b/src/third_party/lss/linux_syscall_support.h @@ -119,7 +119,7 @@ extern "C" { #ifdef __mips__ /* Include definitions of the ABI currently in use. */ -#ifdef __ANDROID__ +#if defined(__ANDROID__) || defined(__MUSL__) /* Android doesn't have sgidefs.h, but does have asm/sgidefs.h, * which has the definitions we need. */