PATCH: add missing __strdup decl to include/string.h
Greg McGary
greg@kayak.mcgary.org
Thu Jun 22 18:57:00 GMT 2000
Ulrich Drepper <drepper@redhat.com> writes:
> Greg McGary <greg@kayak.mcgary.org> writes:
>
> > I don't recall exactly. Without this patch, I get warnings about
> > undeclared __strdup when building the BP lib. The BP build disables
> > the macro-mania in string2.h and that's why it gets warnings while
> > other builds don't.
>
> I don't doubt this. I still want to know where exactly the use of
> __strdup is.
I get these warnings without the decl of __strdup in include/string.h:
gconv_db.c:204: warning: implicit declaration of function `__strdup'
bindtextdom.c:156: warning: implicit declaration of function `__strdup'
textdomain.c:114: warning: implicit declaration of function `__strdup'
fmtmsg.c:344: warning: implicit declaration of function `__strdup'
tempnam.c:40: warning: implicit declaration of function `__strdup'
tzset.c:169: warning: implicit declaration of function `__strdup'
../sysdeps/generic/glob.c:832: warning: implicit declaration of function `__strdup'
../sysdeps/generic/glob.c:832: warning: implicit declaration of function `__strdup'
wordexp.c:167: warning: implicit declaration of function `__strdup'
getdirname.c:41: warning: implicit declaration of function `__strdup'
getnetgrent_r.c:116: warning: implicit declaration of function `__strdup'
getnameinfo.c:101: warning: implicit declaration of function `__strdup'
../sysdeps/unix/sysv/linux/if_index.c:143: warning: implicit declaration of function `__strdup'
utmpname.c:60: warning: implicit declaration of function `__strdup'
More information about the Libc-hacker
mailing list