bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strsignal on NetBSD [was: m4-1.4.15 issues]


From: Eric Blake
Subject: Re: strsignal on NetBSD [was: m4-1.4.15 issues]
Date: Thu, 09 Sep 2010 15:44:00 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]