summaryrefslogtreecommitdiff
path: root/plugins/artwork
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/artwork')
-rw-r--r--plugins/artwork/albumartorg.c3
-rw-r--r--plugins/artwork/artwork.c8
-rw-r--r--plugins/artwork/lastfm.c3
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>