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:
Sebastian Huber 2016-03-18 11:49:24 +01:00 committed by Corinna Vinschen
parent 00d2fe1959
commit a10dacbdac
1 changed files with 4 additions and 0 deletions

View File

@ -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__