libmpd: fix build with strndup
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 8 Dec 2018 12:58:15 +0000 (13:58 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 8 Dec 2018 22:38:33 +0000 (23:38 +0100)
commitb65c8e28ce19cee143db251d48482c3c7d2692c2
treee436bc23319c0c18bd3491f261028a47d9b7324d
parented9a5b84eeaf03bbc267e25a35ea5718c32d29c3
libmpd: fix build with strndup

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@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libmpd/0001-Fix-build-on-archlinux-missing-include.patch [new file with mode: 0644]