blob: 5242b29e0693bad777fb81c93ca465ba788287b4 [file] [log] [blame]
Andrew Geissler615f2f12022-07-15 14:00:58 -05001From 738549dea7a4e6c462a79962c414eaa450c2cffd Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 9 Apr 2020 13:06:27 -0700
Andrew Geissler615f2f12022-07-15 14:00:58 -05004Subject: [PATCH 1/3] absl: always use <asm/sgidefs.h>
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
6Fixes mips/musl build, since sgidefs.h is not present on all C libraries
7but on linux asm/sgidefs.h is there and contains same definitions, using
8that makes it portable.
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
Andrew Geissler615f2f12022-07-15 14:00:58 -050013
Andrew Geissler82c905d2020-04-13 13:39:40 -050014---
15 absl/base/internal/direct_mmap.h | 6 +-----
16 1 file changed, 1 insertion(+), 5 deletions(-)
17
18diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h
Andrew Geissler615f2f12022-07-15 14:00:58 -050019index e492bb0..c8a4fba 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050020--- a/absl/base/internal/direct_mmap.h
21+++ b/absl/base/internal/direct_mmap.h
22@@ -41,13 +41,9 @@
23
24 #ifdef __mips__
25 // Include definitions of the ABI currently in use.
Andrew Geissler615f2f12022-07-15 14:00:58 -050026-#if defined(__BIONIC__) || !defined(__GLIBC__)
Andrew Geissler82c905d2020-04-13 13:39:40 -050027-// Android doesn't have sgidefs.h, but does have asm/sgidefs.h, which has the
28+// bionic/musl C libs don't have sgidefs.h, but do have asm/sgidefs.h, which has the
29 // definitions we need.
30 #include <asm/sgidefs.h>
31-#else
32-#include <sgidefs.h>
Andrew Geissler615f2f12022-07-15 14:00:58 -050033-#endif // __BIONIC__ || !__GLIBC__
Andrew Geissler82c905d2020-04-13 13:39:40 -050034 #endif // __mips__
35
36 // SYS_mmap and SYS_munmap are not defined in Android.
37--
Andrew Geisslereef63862021-01-29 15:58:13 -0600382.25.1
Andrew Geissler82c905d2020-04-13 13:39:40 -050039