According to POSIX and both OSX and Linux manpages, strcasecmp comes from strings.h, not string.h.
Most OSes also have them available in string.h, but we just fixed the headers on Haiku and it now only provides them in strings.h. We might want to fall back to string.h for other OSes though... cf. http://pubs.opengroup.org/onlinepubs/009695399/functions/strcasecmp.html http://linux.die.net/man/3/strcasecmp https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strcasecmp.3.html --- src/util/ASCII.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/ASCII.hxx b/src/util/ASCII.hxx index adea6dc..4a65254 100644 --- a/src/util/ASCII.hxx +++ b/src/util/ASCII.hxx @@ -30,10 +30,13 @@ #ifndef MPD_ASCII_HXX #define MPD_ASCII_HXX +#include "config.h" #include "Compiler.h" #include <assert.h> -#include <string.h> +#if HAVE_STRINGS_H +#include <strings.h> +#endif /** * Determine whether two strings are equal, ignoring case for ASCII -- 2.1.0.rc1 _______________________________________________ mpd-devel mailing list mpd-devel@musicpd.org http://mailman.blarg.de/listinfo/mpd-devel