mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
abseil_cpp: mmap and alarm supported
This commit is contained in:
@@ -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"
|
||||
|
||||
31
dev-cpp/abseil-cpp/patches/abseil_cpp-20210324.2.patchset
Normal file
31
dev-cpp/abseil-cpp/patches/abseil_cpp-20210324.2.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user