diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-17 00:16:14 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-17 00:16:14 +0200 |
commit | 838eb1fa2d365ee085082b26e8b8b6ec657af572 (patch) | |
tree | 4e3546f54910bc831928a4c749c3375d40abe6a3 /unix/mpconfigport.h | |
parent | f4a6a577ab133781c06aec029c806c878555730a (diff) | |
download | micropython-838eb1fa2d365ee085082b26e8b8b6ec657af572.tar.gz micropython-838eb1fa2d365ee085082b26e8b8b6ec657af572.zip |
stream: Implement seek operation support via ioctl, wrapped in generic method.
Also, implement for unix port.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r-- | unix/mpconfigport.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 7844cc937e..1baf56a11b 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -122,6 +122,13 @@ typedef unsigned int mp_uint_t; // must be pointer size #define BYTES_PER_WORD sizeof(mp_int_t) +// Cannot include <sys/types.h>, as it may lead to symbol name clashes +#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__) +typedef long long mp_off_t; +#else +typedef long mp_off_t; +#endif + typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size |