summaryrefslogtreecommitdiff
path: root/absl/base
diff options
context:
space:
mode:
authorGravatar John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-02-22 22:18:45 +0100
committerGravatar GitHub <noreply@github.com>2021-02-22 16:18:45 -0500
commita2d7f453c635e90b356017dd47049b89407c2d88 (patch)
tree71f0ef9bc5040e924ed497495b43f1cffab4fefc /absl/base
parent0b5af594fc200b77b130dd65d2412bdd8e1e2c76 (diff)
Add support for more Linux architectures (#904)
* Add support for alpha * Add support for hppa * Add support for ia64 * Add support for sh
Diffstat (limited to 'absl/base')
-rw-r--r--absl/base/internal/direct_mmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h
index a10a11c9..274054cd 100644
--- a/absl/base/internal/direct_mmap.h
+++ b/absl/base/internal/direct_mmap.h
@@ -74,7 +74,8 @@ namespace base_internal {
inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd,
off64_t offset) noexcept {
#if defined(__i386__) || defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \
- defined(__m68k__) || \
+ defined(__m68k__) || defined(__sh__) || \
+ (defined(__hppa__) && !defined(__LP64__)) || \
(defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) || \
(defined(__PPC__) && !defined(__PPC64__)) || \
(defined(__riscv) && __riscv_xlen == 32) || \