Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2005 by Daniel Stenberg |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | |
| 22 | #ifndef _SYS_TYPES_H_ |
| 23 | #define _SYS_TYPES_H_ |
| 24 | |
Marcoen Hirschberg | f2fe4e0 | 2006-03-02 13:07:11 +0000 | [diff] [blame] | 25 | #if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t) && !defined(_SSIZE_T_DECLARED) |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 26 | #define __ssize_t_defined |
| 27 | #define _SSIZE_T_ |
| 28 | #define ssize_t ssize_t |
| 29 | typedef signed long ssize_t; |
| 30 | #endif |
| 31 | |
Marcoen Hirschberg | f2fe4e0 | 2006-03-02 13:07:11 +0000 | [diff] [blame] | 32 | #if !defined(__off_t_defined) && !defined(_OFF_T_) && !defined(off_t) && !defined(_OFF_T_DECLARED) |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 33 | #define __off_t_defined |
| 34 | #define _OFF_T_ |
| 35 | #define off_t off_t |
| 36 | typedef signed long off_t; |
| 37 | #endif |
| 38 | |
Marcoen Hirschberg | f2fe4e0 | 2006-03-02 13:07:11 +0000 | [diff] [blame] | 39 | #if !defined(__mode_t_defined) && !defined(_MODE_T_) && !defined(mode_t) && !defined(_MODE_T_DECLARED) |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 40 | #define __mode_t_defined |
| 41 | #define _MODE_T_ |
| 42 | #define mode_t mode_t |
| 43 | typedef unsigned int mode_t; |
| 44 | #endif |
| 45 | |
Marcoen Hirschberg | f2fe4e0 | 2006-03-02 13:07:11 +0000 | [diff] [blame] | 46 | #if !defined(_SIZE_T) && !defined(_SIZE_T_DECLARED) |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 47 | #define _SIZE_T |
Marcoen Hirschberg | f2fe4e0 | 2006-03-02 13:07:11 +0000 | [diff] [blame] | 48 | #define _SIZE_T_DECLARED |
Daniel Stenberg | 22b7701 | 2005-02-22 12:19:12 +0000 | [diff] [blame] | 49 | typedef unsigned long size_t; |
| 50 | #endif |
| 51 | |
| 52 | #endif /* _SYS_TYPES_H */ |