blob: 95181dab19422d5ab36d27887ad59f6d15cdfa18 [file] [log] [blame]
Daniel Stenberg22b77012005-02-22 12:19:12 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Daniel Stenberg
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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 Stenberg22b77012005-02-22 12:19:12 +000016 *
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 Hirschbergf2fe4e02006-03-02 13:07:11 +000025#if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t) && !defined(_SSIZE_T_DECLARED)
Daniel Stenberg22b77012005-02-22 12:19:12 +000026#define __ssize_t_defined
27#define _SSIZE_T_
28#define ssize_t ssize_t
29typedef signed long ssize_t;
30#endif
31
Marcoen Hirschbergf2fe4e02006-03-02 13:07:11 +000032#if !defined(__off_t_defined) && !defined(_OFF_T_) && !defined(off_t) && !defined(_OFF_T_DECLARED)
Daniel Stenberg22b77012005-02-22 12:19:12 +000033#define __off_t_defined
34#define _OFF_T_
35#define off_t off_t
36typedef signed long off_t;
37#endif
38
Marcoen Hirschbergf2fe4e02006-03-02 13:07:11 +000039#if !defined(__mode_t_defined) && !defined(_MODE_T_) && !defined(mode_t) && !defined(_MODE_T_DECLARED)
Daniel Stenberg22b77012005-02-22 12:19:12 +000040#define __mode_t_defined
41#define _MODE_T_
42#define mode_t mode_t
43typedef unsigned int mode_t;
44#endif
45
Marcoen Hirschbergf2fe4e02006-03-02 13:07:11 +000046#if !defined(_SIZE_T) && !defined(_SIZE_T_DECLARED)
Daniel Stenberg22b77012005-02-22 12:19:12 +000047#define _SIZE_T
Marcoen Hirschbergf2fe4e02006-03-02 13:07:11 +000048#define _SIZE_T_DECLARED
Daniel Stenberg22b77012005-02-22 12:19:12 +000049typedef unsigned long size_t;
50#endif
51
52#endif /* _SYS_TYPES_H */