abseil_cpp: mmap and alarm supported

This commit is contained in:
Jerome Duval
2021-10-18 16:31:19 +02:00
parent 5984371fea
commit cd89accf11
2 changed files with 33 additions and 1 deletions

View File

@@ -4,10 +4,11 @@ C++11) designed to augment the C++ standard library."
HOMEPAGE="https://abseil.io"
COPYRIGHT="2017-2021 The Abseil Authors"
LICENSE="Apache v2"
REVISION="2"
REVISION="3"
SOURCE_URI="http://github.com/abseil/abseil-cpp/archive/$portVersion/abseil-$portVersion.tar.gz"
CHECKSUM_SHA256="59b862f50e710277f8ede96f083a5bb8d7c9595376146838b9580be90374ee1f"
SOURCE_DIR="abseil-cpp-$portVersion"
PATCHES="abseil_cpp-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

View File

@@ -0,0 +1,31 @@
From 3724b2ecb515c4440bb3a22ed39733ba2a1737d8 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 18 Oct 2021 14:37:02 +0200
Subject: Haiku: mmap and alarm supported
diff --git a/absl/base/config.h b/absl/base/config.h
index 9544996..a172b02 100644
--- a/absl/base/config.h
+++ b/absl/base/config.h
@@ -372,7 +372,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__ros__) || defined(__native_client__) || defined(__asmjs__) || \
defined(__wasm__) || defined(__Fuchsia__) || defined(__sun) || \
- defined(__ASYLO__) || defined(__myriad2__)
+ defined(__ASYLO__) || defined(__myriad2__) || defined(__HAIKU__)
#define ABSL_HAVE_MMAP 1
#endif
@@ -430,7 +430,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#elif defined(__GOOGLE_GRTE_VERSION__)
// feature tests for Google's GRTE
#define ABSL_HAVE_ALARM 1
-#elif defined(__GLIBC__)
+#elif defined(__GLIBC__) || defined(__HAIKU__)
// feature test for glibc
#define ABSL_HAVE_ALARM 1
#elif defined(_MSC_VER)
--
2.30.2