mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
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 of9b7d85227eanddf05caea6c. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user