]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: gmtoff member of struct tm
authorFred Morcos <fred.morcos@open-xchange.com>
Mon, 3 Jul 2023 10:35:09 +0000 (12:35 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:25 +0000 (13:28 +0100)
meson/tm-gmtoff/meson.build [new file with mode: 0644]

diff --git a/meson/tm-gmtoff/meson.build b/meson/tm-gmtoff/meson.build
new file mode 100644 (file)
index 0000000..722ded8
--- /dev/null
@@ -0,0 +1,11 @@
+# Check for the tm_gmtoff field in struct tm
+# Inputs: conf
+
+prefix = '''
+#include <sys/types.h>
+#include <time.h>
+'''
+
+has = cxx.has_member('struct tm', 'tm_gmtoff', prefix: prefix)
+conf.set10('HAVE_TM_GMTOFF', has, description: 'Whether tm_gmtoff is available')
+summary('tm_gmtoff', has, bool_yn: true, section: 'System')