works with older glibc headers too now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4117 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ae960a9ece
commit
cf2c577d3d
1 changed files with 6 additions and 3 deletions
|
@ -42,21 +42,24 @@
|
||||||
#define O_TRUNC 0x10
|
#define O_TRUNC 0x10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__ssize_t_defined) && !defined(_SSIZE_T_)
|
#if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t)
|
||||||
#define __ssize_t_defined
|
#define __ssize_t_defined
|
||||||
#define _SSIZE_T_
|
#define _SSIZE_T_
|
||||||
|
#define ssize_t ssize_t
|
||||||
typedef signed long ssize_t;
|
typedef signed long ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__off_t_defined) && !defined(_OFF_T_)
|
#if !defined(__off_t_defined) && !defined(_OFF_T_) && !defined(off_t)
|
||||||
#define __off_t_defined
|
#define __off_t_defined
|
||||||
#define _OFF_T_
|
#define _OFF_T_
|
||||||
|
#define off_t off_t
|
||||||
typedef signed long off_t;
|
typedef signed long off_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__mode_t_defined) && !defined(_MODE_T_)
|
#if !defined(__mode_t_defined) && !defined(_MODE_T_) && !defined(mode_t)
|
||||||
#define __mode_t_defined
|
#define __mode_t_defined
|
||||||
#define _MODE_T_
|
#define _MODE_T_
|
||||||
|
#define mode_t mode_t
|
||||||
typedef unsigned int mode_t;
|
typedef unsigned int mode_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue