From cf2c577d3dca638f7a3de782f27fe233325aec24 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Dec 2003 22:29:40 +0000 Subject: [PATCH] works with older glibc headers too now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4117 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/file.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/firmware/include/file.h b/firmware/include/file.h index 8159a7bc84..e916d7007d 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h @@ -42,21 +42,24 @@ #define O_TRUNC 0x10 #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_ +#define ssize_t ssize_t typedef signed long ssize_t; #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_ +#define off_t off_t typedef signed long off_t; #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_ +#define mode_t mode_t typedef unsigned int mode_t; #endif