lib: Fix off_t.

* include/sys/types.h [!__M2__]: Change to long long.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-10-30 16:31:55 +01:00
parent 9fa0d4098c
commit 34d241e4dc
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 4 additions and 0 deletions

View File

@ -106,7 +106,11 @@ typedef unsigned long uintptr_t;
#ifndef __MES_OFF_T
#define __MES_OFF_T
#undef off_t
#if __M2__
typedef long off_t;
#else
typedef long long off_t;
#endif
#endif
#if __SIZEOF_LONG_LONG__ == 8