[PATCH] Declare sethostname() if __BSD_VISIBLE is defined

Corinna Vinschen vinschen@redhat.com
Fri Oct 24 09:39:00 GMT 2014


Hi Sebastian,

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)

?


Corinna

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


More information about the Newlib mailing list