RHash: revbump (#5377)

This commit is contained in:
extrowerk
2020-10-31 16:29:52 +01:00
committed by GitHub
parent 28e12ca181
commit bc47dd503e
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
From 2db8b9e337e073f52c762f12373632044fefe340 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sat, 31 Oct 2020 12:41:12 +0100
Subject: Haiku have no alligned_alloc
diff --git a/librhash/util.h b/librhash/util.h
index 6accc7b..0a4db35 100644
--- a/librhash/util.h
+++ b/librhash/util.h
@@ -39,7 +39,7 @@ extern "C" {
# define rhash_aligned_alloc(alignment, size) _aligned_malloc((size), (alignment))
# define rhash_aligned_free(ptr) _aligned_free(ptr)
-#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__)
+#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__) && !defined(__HAIKU__)
# define HAS_STDC_ALIGNED_ALLOC
# include <stdlib.h>
--
2.28.0

View File

@@ -9,10 +9,11 @@ Hash sums are used to ensure and verify integrity of large volumes of data for\
HOMEPAGE="https://github.com/rhash/RHash"
COPYRIGHT="2005-2020 Aleksey Kravchenko"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/rhash/RHash/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2ea39540f5c580da0e655f7b483c19e0d31506aed4202d88e8459fa7aeeb8861"
SOURCE_DIR="RHash-$portVersion"
PATCHES="rhash-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"