Michael Kerrisk wrote:
> On Nov 29, 2007 2:37 PM, Martin Schulze <[EMAIL PROTECTED]> wrote:
> > Michael Kerrisk wrote:
> > > > Hi Michael,
> > > >
> > > > it seems that strndup(3) requires the feature test macro __USE_GNU
> > > > instead of _GNU_SOURCE.
> > > >
> > > > At least that's what /usr/include/string.h
> > > > suggests and what makes gcc happy.
> > >
> > > Hi Joey,
> > >
> > > What makes you think that _GNU_SOURCE does not do the job?  It seems
> > > to work for my quick test.
> >
> > *&$*&@#(@!)
> >
> > In a quick test it works here as well.
> >
> > It seems I need to write the define in front of all include files
> > (i.e. stdio.h, stdlib.h or unistd.h interferes somehow).
> 
> Yes precisely.  And it must be so when you think about it, because you
> never know what header files might be included by other header files.
>  (That's up to the implementation.)  This is all covered in

Of course, that makes sense.

Regards,

        Joey

-- 
Those who don't understand Unix are condemned to reinvent it, poorly.

Please always Cc to me when replying to me on the lists.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to