pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51424: pkgtools/libnbcompat string.h header does not properly guard strdup definition

On Sat, Aug 20, 2016 at 12:10:00AM +0000, William Orr wrote:
>  It's not that the configure test fails, it's that the configure test
>  doesn't define HAVE_DECL_STRDUP - it defines HAVE_STRDUP. Normally, this
>  would just shadow the declaration of strdup, but because strdup is a
>  macro on this system, the preprocessor mangles the definition in
>  nbcompat/string.h. When the header compilation check runs on
>  nbcompat/string.h, this results in a compilation failure.

This is not true. When the detection works correctly, it does define
HAVE_DECL_STRDUP. This is *not* a test for a function, but for an actual
usable prototype and function.


Home | Main Index | Thread Index | Old Index