Subject: Re: query netbsd version
To: Klaus Klein <>
From: Christoph Egger <>
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
> 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 
> <>.

Thank you!


Christoph Egger

NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter

+++ GMX - die erste Adresse für Mail, Message, More! +++