summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-23 18:23:07 +1000
committerDamien George <damien@micropython.org>2025-07-24 11:42:53 +1000
commit6a4306a0df1e936954bfeff65297d74b9b0954e2 (patch)
tree0d89da7f164cc90e155d67c10f292a48e0164375
parent8b3439e26c293e374bf94c674d1e747d5a57034f (diff)
unix/mpconfigport: Include time.h to get definition of time_t.
Without this there's a build error on macOS (at least). This was likely due to a combination of 9b7d85227e67a7edd608aab4ff7eb4a838651f75 and df05caea6c6437a8b4756ec502a5e6210f4b6256. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/unix/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h
index c18859ecb..68943fb89 100644
--- a/ports/unix/mpconfigport.h
+++ b/ports/unix/mpconfigport.h
@@ -29,6 +29,9 @@
// features to work on Unix-like systems, see mpconfigvariant.h (and
// mpconfigvariant_common.h) for feature enabling.
+// For time_t, needed by MICROPY_TIMESTAMP_IMPL_TIME_T.
+#include <time.h>
+
// For size_t and ssize_t
#include <unistd.h>