Re: strdup in C++ mode

2010-09-04 Thread Bruno Haible
> > I get a compiler error: > > > > In file included from sysdir.h:34:0, > > from dir-ops.cc:34: > > ../libgnu/dirent.h:380:1: error: '::dirfd' has not been declared > > > > This appeared since the changes to the lib/dirent.in.h > > > > OSX declares dirfd as a macro A similar c

Re: strdup

2008-09-18 Thread Simon Josefsson
Getaddrinfo does not assume the ENOMEM behaviour of strdup, and being maintainer for that module, I removed the strdup dependency. /Simon >From 0ca0a3c52fb45689e0ba8d1063272193bf2bd1db Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[EMAIL PROTECTED]> Date: Thu, 18 Sep 2008 15:46:30 +0200 Subject

Re: strdup

2008-09-18 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > >> Are there any platforms we care about that lack strdup? >> >> doc/posix-functions/strdup.texi contains: >> >> Portability problems fixed by Gnulib: >> @itemize >> @item >> This function is missing on some old platforms. >> @item >> This f

Re: strdup

2008-09-18 Thread Bruno Haible
Hi Simon, > Are there any platforms we care about that lack strdup? > > doc/posix-functions/strdup.texi contains: > > Portability problems fixed by Gnulib: > @itemize > @item > This function is missing on some old platforms. > @item > This function has no prototype in @code{} on some old platfor