This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/5] Guard ssize_t definition by _SSIZE_T_DECLARED


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]