Clash in sethostname char const argument

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 31 06:57:29 UTC 2014


Hello Pavel,

On 31/10/14 02:04, Pavel Pisa wrote:
> I am starting to test GCC-4.9.2 toolchain with actual RTEMS
> and I have noticed that when I use actual Newlib GIT
> there is added
>
> #if __BSD_VISIBLE || (defined(_XOPEN_SOURCE) && __XSI_VISIBLE < 500)
> int	_EXFUN(sethostname, (const char *, size_t));
> #endif
>
> to include/sys/unistd.h
>
> but RTEMS declares these without const which results
> in rtems cpukit build error. Please, commit correction
> in type to RTEMS.

sorry, I didn't anticipate that this Newlib version will be used so fast. 
Chris submitted a fix for me.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list