Warning Building Newlib Head

Corinna Vinschen vinschen@redhat.com
Wed Jan 14 16:12:00 GMT 2015


Hi Joel,

On Jan 14 09:56, Joel Sherrill wrote:
> Hi
> 
> Looking at the warnings in the build logs, I saw this:
> 
> newlib/libc/posix/glob.c:383:7: warning: implicit declaration of
> function 'issetugid' [-Wimplicit-function-declaration]
> 
> I was going to add an include to eliminate this but don't see one. The
> method
> is referenced in these files:
> 
> $ grep -r issetugid .
> ./posix/glob.c:            issetugid() != 0 ||
> ./sys/rtems/crt0.c:RTEMS_STUB(int, issetugid (void), { return 0; })
> ./sys/linux/net/issetugid-stub.c:issetugid(void)
> 
> Where should this method be prototyped?

Per the BSDs, in unistd.h, ideally with an #if __BSD_VISIBLE.

OTOH, none of our targets actually provides this function, so it
might be better to add the prototype to glob.c itself?


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/20150114/0c9f1f5c/attachment.sig>


More information about the Newlib mailing list