diff options
author | Kevin van der Vlist <kevin@kevinvandervlist.nl> | 2011-06-07 23:13:58 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-06-12 13:44:51 +0200 |
commit | 1eed84099a8ea6b7bec9167f19d865ab52d6695f (patch) | |
tree | 75d4bc6edd4de29bfa2cbe70fa7121527056850e /plugins/artwork | |
parent | bded25b2bafd98fce08b6cdcd6276b3dcf508cbc (diff) |
OpenIndian b148 support (and perhaps other Solaris builds).
Diffstat (limited to 'plugins/artwork')
-rw-r--r-- | plugins/artwork/albumartorg.c | 3 | ||||
-rw-r--r-- | plugins/artwork/artwork.c | 8 | ||||
-rw-r--r-- | plugins/artwork/lastfm.c | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/plugins/artwork/albumartorg.c b/plugins/artwork/albumartorg.c index ada7179f..51ca54cb 100644 --- a/plugins/artwork/albumartorg.c +++ b/plugins/artwork/albumartorg.c @@ -16,6 +16,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <stdlib.h> #include <string.h> #include <unistd.h> diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index c2a8b766..7f56b870 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -721,6 +724,11 @@ static const char *filter_custom_mask = NULL; static int filter_custom (const struct dirent *f) { +// FNM_CASEFOLD is not defined on solaris. On other platforms it is. +// It should be safe to define it as FNM_INGORECASE if it isn't defined. +#ifndef FNM_CASEFOLD +#define FNM_CASEFOLD FNM_IGNORECASE +#endif if (!fnmatch (filter_custom_mask, f->d_name, FNM_CASEFOLD)) { return 1; } diff --git a/plugins/artwork/lastfm.c b/plugins/artwork/lastfm.c index 2e78fd87..91972c8a 100644 --- a/plugins/artwork/lastfm.c +++ b/plugins/artwork/lastfm.c @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <stdio.h> #include <string.h> #include <stdlib.h> |