[Buildroot] [PATCH 1/1] libmpd: fix build with strndup

Peter Korsgaard peter at korsgaard.com
Sun Dec 16 19:43:37 UTC 2018

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:

 > Retrieve a patch from upstream to include config.h otherwise build will
 > fail when trying to redefine strndup:
 > libmpd-internal.h:210:10: error: expected identifier or '(' before '__extension__'
 >  char *   strndup     (const char *s, size_t n);

 > Indeed, without an include on config.h, HAVE_STRNDUP won't be defined

 > Fixes:
 >  - http://autobuild.buildroot.org/results/a174818fa768b029d19b033139f9c5e0aaaed149

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

Committed to 2018.02.x, 2018.08.x and 2018.11.x, thanks.

Bye, Peter Korsgaard

More information about the buildroot mailing list