diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | plugins/artwork/artwork.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9489862e..14cd5e18 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,8 @@ dnl check libsocket (OpenIndiana) AC_CHECK_LIB([socket], [main], [HAVE_SOCKET=yes;DL_LIBS="-lsocket";AC_SUBST(DL_LIBS)]) dnl check for seperate alloca.h (OpenIndiana) AC_CHECK_HEADER([alloca.h],[],[alloca.h not found.]) +dnl check for syslimits.h (BSD) +AC_CHECK_HEADERS([sys/syslimits.h]) if test "x$enable_portable" != "xno" && test "x$enable_staticlink" != "xno" ; then AC_DEFINE_UNQUOTED([PORTABLE], [1], [Define if building portable version]) diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 161448c3..2bac1826 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -10,6 +10,9 @@ #include <unistd.h> #include <fnmatch.h> #include <inttypes.h> +#if HAVE_SYS_SYSLIMITS_H +#include <sys/syslimits.h> +#endif #include "../../deadbeef.h" #include "artwork.h" #include "lastfm.h" |