From 2f7d2bb3e20cb1a9034c1eabeff1e7fd6caaed78 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 21 Mar 2020 17:48:03 -0500 Subject: [PATCH] py/stream.h: Include sys/types.h to get size_t and off_t for POSIX API. --- py/stream.h | 1 + 1 file changed, 1 insertion(+) diff --git a/py/stream.h b/py/stream.h index 96f439c6a7..45f36ef5a6 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 // 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);