On 09/09/2010 02:44 PM, Eric Blake wrote:
Add -D_NETBSD_SOURCE to CFLAGS to expose the hidden prototype
of strsignal:
Hmm - I don't see _NETBSD_SOURCE listed in m4/extensions.m4; maybe that
means gl_USE_SYSTEM_EXTENSIONS needs to be aware of yet another spelling
to get this automatically added to config.h?
Nelson confirmed off-list that we don't need to worry about
_NETBSD_SOURCE in gl_USE_SYSTEM_EXTENSIONS, at least for strsignal. I
verified that <sys/featuretest.h> on that platform does this:
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \
!defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE)
#define _NETBSD_SOURCE 1
#endif
so unless we seldom explicitly request just strict standards compliance,
compilation on NetBSD exposes NetBSD extensions by default.
--
Eric Blake ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org