[PATCH 1/5] Guard ssize_t definition by _SSIZE_T_DECLARED

Corinna Vinschen vinschen@redhat.com
Fri Mar 18 11:33:00 GMT 2016


On Mar 18 11:49, Sebastian Huber wrote:
> 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.
> ---
>  newlib/libc/include/sys/types.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
> index c09866b..52530c5 100644
> --- a/newlib/libc/include/sys/types.h
> +++ b/newlib/libc/include/sys/types.h
> @@ -192,7 +192,11 @@ typedef _mode_t mode_t;
>  #ifndef __CYGWIN__
>  typedef	long key_t;
>  #endif
> +
> +#ifndef _SSIZE_T_DECLARED
>  typedef _ssize_t ssize_t;
> +#define	_SSIZE_T_DECLARED
> +#endif
>  
>  #if !defined(__CYGWIN__) && !defined(__rtems__)
>  #ifdef __MS_types__
> -- 
> 1.8.4.5

Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20160318/11844d02/attachment.sig>


More information about the Newlib mailing list