From e736ae9ed07d78057a54fce9f9c39044ec3ba1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 6 Dec 2020 19:17:15 +0100 Subject: [PATCH] db: patch to always use time_t for tv_nsec --- srcpkgs/db/patches/time64.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/db/patches/time64.patch diff --git a/srcpkgs/db/patches/time64.patch b/srcpkgs/db/patches/time64.patch new file mode 100644 index 00000000000..b199e800272 --- /dev/null +++ b/srcpkgs/db/patches/time64.patch @@ -0,0 +1,18 @@ +By the comment's own admission, this cannot affect on-disk nor ABI because +'long' varies per architecture. So, this change is always correct. + +--- src/dbinc/clock.h 2013-09-09 15:35:08.000000000 +0000 ++++ src/dbinc/clock.h 2020-01-31 19:22:11.630000000 +0000 +@@ -54,11 +54,7 @@ + */ + typedef struct { + time_t tv_sec; /* seconds */ +-#ifdef HAVE_MIXED_SIZE_ADDRESSING +- int32_t tv_nsec; +-#else +- long tv_nsec; /* nanoseconds */ +-#endif ++ time_t tv_nsec; /* nanoseconds */ + } db_timespec; + + /* Operations on timespecs */