depends: polyseed: allow compiling on 32-bit machines

This commit is contained in:
tobtoht 2022-12-23 13:53:58 +01:00
parent 877d09ee37
commit d8f8380594
2 changed files with 28 additions and 2 deletions

View file

@ -4,11 +4,12 @@ $(package)_download_path=https://github.com/tevador/polyseed/archive/refs/tags/
$(package)_file_name=v$($(package)_version).tar.gz
$(package)_sha256_hash=45f1e6c08575286581079e6e26d341a3a33abe1f1ee2d026bd098cf632ea2349
$(package)_dependencies=native_cmake
$(package)_patches=no_shared.patch force-static-mingw.patch
$(package)_patches=no_shared.patch force-static-mingw.patch 32-bit.patch
define $(package)_preprocess_cmds
patch -p1 < $($(package)_patch_dir)/no_shared.patch && \
patch -p1 < $($(package)_patch_dir)/force-static-mingw.patch
patch -p1 < $($(package)_patch_dir)/force-static-mingw.patch && \
patch -p1 < $($(package)_patch_dir)/32-bit.patch
endef
define $(package)_config_cmds

View file

@ -0,0 +1,25 @@
From 8c51b00cb98381a791ef3dcda39f76bebaf9d68f Mon Sep 17 00:00:00 2001
From: tobtoht <tob@featherwallet.org>
Date: Fri, 23 Dec 2022 13:51:36 +0100
Subject: [PATCH] allow compiling on 32-bit machines
---
src/birthday.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/birthday.h b/src/birthday.h
index 822883a..5af79aa 100644
--- a/src/birthday.h
+++ b/src/birthday.h
@@ -7,8 +7,6 @@
#include <time.h>
#include <assert.h>
-static_assert(sizeof(time_t) == 8, "time_t must be a 64-bit type.");
-
#define EPOCH ((uint64_t)1635768000) /* 1st November 2021 12:00 UTC */
#define TIME_STEP ((uint64_t)2629746) /* 30.436875 days = 1/12 of the Gregorian year */
--
2.39.0