gnucash stable: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Thu May 15 18:15:11 EDT 2025
Updated via https://github.com/Gnucash/gnucash/commit/2f535782 (commit)
via https://github.com/Gnucash/gnucash/commit/a2ca9e28 (commit)
from https://github.com/Gnucash/gnucash/commit/2219befd (commit)
commit 2f535782462c1a382812cc106f791c17d0b6b73b
Merge: 2219befd98 a2ca9e28a5
Author: John Ralls <jralls at ceridwen.us>
Date: Thu May 15 15:03:05 2025 -0700
Merge Bill Summerfeld's 'have-struct-tm-gmtoff' into stable.
commit a2ca9e28a5623f53f4b0e7eaa4da02c0c8d25c7a
Author: Bill Sommerfeld <sommerfeld at hamachi.org>
Date: Mon May 5 17:15:07 2025 -0700
Let cmake probe for the existence of HAVE_STRUCT_TM_GMTOFF
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77f0c44306..e925a0b8df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,7 @@ include (GncGenerateGResources)
include (MakeDistFiles)
include (GNUInstallDirs)
include (TestBigEndian)
+include (CheckStructHasMember)
# ############################################################
# These options are settable from the CMake command line. For example, to disable
@@ -790,6 +791,11 @@ set (_TANDEM_SOURCE 1)
set (__EXTENSIONS__ 1)
endif()
+check_struct_has_member("struct tm" tm_gmtoff time.h have_struct_tm_gmtoff)
+if (have_struct_tm_gmtoff)
+ set(HAVE_STRUCT_TM_GMTOFF 1)
+endif()
+
if (UNIX)
set (HAVE_CHOWN 1)
set (HAVE_DLERROR 1)
@@ -809,7 +815,6 @@ set (HAVE_PTHREAD_PRIO_INHERIT 1)
set (HAVE_SETENV 1)
set (HAVE_STPCPY 1)
set (HAVE_STRPTIME 1)
-set (HAVE_STRUCT_TM_GMTOFF 1)
set (HAVE_TIMEGM 1)
set (HAVE_TOWUPPER 1)
set (GNC_PLATFORM_POSIX 1)
Summary of changes:
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list