Skip to content

Commit ba2c503

Browse files
committed
esp8266/mpconfigport.h: Include sys/types.h for POSIX types definitions.
As required for related functions in stream.h.
1 parent 50fea19 commit ba2c503

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

esp8266/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ typedef void *machine_ptr_t; // must be of pointer size
116116
typedef const void *machine_const_ptr_t; // must be of pointer size
117117
typedef long mp_off_t;
118118
typedef uint32_t sys_prot_t; // for modlwip
119+
// ssize_t, off_t as required by POSIX-signatured functions in stream.h
120+
#include <sys/types.h>
119121

120122
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
121123

0 commit comments

Comments
 (0)