summary refs log tree commit diff
path: root/include/compat/time.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2026-06-01 14:36:58 -0400
committerJune McEnroe <june@causal.agency>2026-06-01 14:36:58 -0400
commitdcd11ea62fce539d9a50f41a822853239e05727a (patch)
treee54578b730a4719e4bc8a2d20fef267c8db7f22f /include/compat/time.h
parentImport LibreSSL 3.8.1 (diff)
downloadlibretls-dcd11ea62fce539d9a50f41a822853239e05727a.tar.gz
libretls-dcd11ea62fce539d9a50f41a822853239e05727a.zip
Import LibreSSL 3.8.2
Diffstat (limited to '')
-rw-r--r--include/compat/time.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/compat/time.h b/include/compat/time.h
index 540807d..2748521 100644
--- a/include/compat/time.h
+++ b/include/compat/time.h
@@ -3,6 +3,14 @@
  * sys/time.h compatibility shim
  */
 
+#ifndef SIZEOF_TIME_T
+#ifdef SMALL_TIME_T
+#define SIZEOF_TIME_T 4
+#else
+#define SIZEOF_TIME_T 8
+#endif
+#endif
+
 #ifdef _MSC_VER
 #if _MSC_VER >= 1900
 #include <../ucrt/time.h>