summaryrefslogtreecommitdiffstats
path: root/unix/tkConfig.h.in
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-21 21:06:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-21 21:06:32 (GMT)
commit7e24016de07abbcfa239c1c467bc9204849a54bd (patch)
treed5a0375ac01987fa34399c4258537815b78ffd68 /unix/tkConfig.h.in
parent65d2ef9c4d45929310f90b8faf8fce23dea1be07 (diff)
downloadtk-7e24016de07abbcfa239c1c467bc9204849a54bd.zip
tk-7e24016de07abbcfa239c1c467bc9204849a54bd.tar.gz
tk-7e24016de07abbcfa239c1c467bc9204849a54bd.tar.bz2
Experimental fix for [https://core.tcl-lang.org/tcl/tktview/d40b9c8503|d40b9c8503]: Enforcing 64-bit time_t?
Since Tk uses time() too, and should support years > 2038
Diffstat (limited to 'unix/tkConfig.h.in')
-rw-r--r--unix/tkConfig.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/unix/tkConfig.h.in b/unix/tkConfig.h.in
index 19de439..cdf6175 100644
--- a/unix/tkConfig.h.in
+++ b/unix/tkConfig.h.in
@@ -186,6 +186,9 @@
/* Are Darwin SUSv3 extensions available? */
#undef _DARWIN_C_SOURCE
+/* Add the _FILE_OFFSET_BITS flag when building */
+#undef _FILE_OFFSET_BITS
+
/* Add the _ISOC99_SOURCE flag when building */
#undef _ISOC99_SOURCE
@@ -201,6 +204,9 @@
/* Do we want the reentrant OS API? */
#undef _REENTRANT
+/* _TIME_BITS=64 enables 64-bit time_t. */
+#undef _TIME_BITS
+
/* Do we want to use the XOPEN network library? */
#undef _XOPEN_SOURCE