Subject: Re: query netbsd version
To: Klaus Klein <kleink@reziprozitaet.de>
From: Christoph Egger <Christoph_Egger@gmx.de>
List: current-users
Date: 10/18/2003 19:42:22
> On Saturday 18 October 2003 16:45, Christoph Egger wrote:
>
> > I have #defined _POSIX_C_SOURCE and this results in an
> >
> > implicit declaration of function 'strdup'
> >
> > in NetBSD 1.6_STABLE.
>
> That's not a bug. _POSIX_C_SOURCE, like other feature macros, also serve
> to restrict interface declarations in headers in order to prevent
namespace
> pollution. strdup(3) isn't part of the POSIX base definitions to date but
>
> an XSI extension; you should #define _XOPEN_SOURCE 600 either on its own
> or in addition to that.
ah - that helped. Tnx.
Does this also count for the other BSDs, too?
> For more information on that topic, see the chapter "The Compilation
> Environment" of the standard, which is available from
> <http://www.unix-systems.org/online.html>.
Thank you!
--
CU,
Christoph Egger
E-Mail: Christoph_Egger@gmx.de
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++