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] Declare sethostname() if __BSD_VISIBLE is defined


On 24/10/14 11:39, Corinna Vinschen wrote:
On Oct 24 09:57, Sebastian Huber wrote:
>Prototype is according to glibc and not FreeBSD which uses int for the
>second parameter.  I am not sure how to do the alternative feature test
>described in the Linux manpage.
Testing for defined(__BSD_VISIBLE) seems wrong to me.  Per sys/cdefs.h
__BSD_VISIBLE is often define as 0.  Taking the Linux man page into
account, shouldn't that be something like

   #if __BSD_VISIBLE || (defined (_XOPEN_SOURCE) && __XSI_VISIBLE < 500)

?

Oh, yes, this defined(__BSD_VISIBLE) is nonsense.  I send a new patch.

--
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@embedded-brains.de
PGP     : Public key available on request.

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


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