Guard ssize_t definition by _SSIZE_T_DECLARED
This guard is used by FreeBSD <sys/socket.h> for example. The FreeBSD network stack is used in RTEMS. * newlib/libc/include/sys/types.h (ssize_t): Guard by _SSIZE_T_DECLARED.
This commit is contained in:
parent
00d2fe1959
commit
a10dacbdac
|
@ -192,7 +192,11 @@ typedef _mode_t mode_t;
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
typedef long key_t;
|
typedef long key_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _SSIZE_T_DECLARED
|
||||||
typedef _ssize_t ssize_t;
|
typedef _ssize_t ssize_t;
|
||||||
|
#define _SSIZE_T_DECLARED
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__CYGWIN__) && !defined(__rtems__)
|
#if !defined(__CYGWIN__) && !defined(__rtems__)
|
||||||
#ifdef __MS_types__
|
#ifdef __MS_types__
|
||||||
|
|
Loading…
Reference in New Issue