From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: "John David Anglin" Cc: gcc-bugs@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: PATCH: Re: jartool.c:539: undefined reference to `strdup' Date: Thu, 03 May 2001 10:13:00 -0000 Message-id: References: <200105031657.MAA03729@hiauly1.hia.nrc.ca> X-SW-Source: 2001-05/msg00176.html On May 3, 2001, "John David Anglin" wrote: > OK for branch and main? I don't think so. strdup() is sometimes defined as a macro, and sometimes it's declared to take a const char *. Better check for it and define it only if it's not present, or go for libiberty, which I think would be a better idea. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me