diff options
author | David Lechner <david@lechnology.com> | 2020-03-21 17:48:03 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-25 01:00:52 +1100 |
commit | 2f7d2bb3e20cb1a9034c1eabeff1e7fd6caaed78 (patch) | |
tree | 2f422655c6b0f0b0115a676205cbf2bbdf5f4772 /py | |
parent | 58d9a4815d9b09651c658d15adc771638272ba44 (diff) |
py/stream.h: Include sys/types.h to get size_t and off_t for POSIX API.
Diffstat (limited to 'py')
-rw-r--r-- | py/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h index 96f439c6a..45f36ef5a 100644 --- a/py/stream.h +++ b/py/stream.h @@ -117,6 +117,7 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode, void mp_stream_write_adaptor(void *self, const char *buf, size_t len); #if MICROPY_STREAMS_POSIX_API +#include <sys/types.h> // Functions with POSIX-compatible signatures // "stream" is assumed to be a pointer to a concrete object with the stream protocol ssize_t mp_stream_posix_write(void *stream, const void *buf, size_t len); |