diff options
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 |