$NetBSD: patch-ab,v 1.1 2010/08/31 19:18:14 drochner Exp $ --- src/metadata.c.orig 2007-10-20 09:41:32.000000000 +0000 +++ src/metadata.c @@ -1018,7 +1018,10 @@ scan_entry(const char *fullpath, const c bool init_metadata(void) { - magic_cookie = magic_open(MAGIC_SYMLINK|MAGIC_MIME|MAGIC_ERROR); +#ifndef MAGIC_MIME_TYPE /* old version */ +#define MAGIC_MIME_TYPE MAGIC_MIME +#endif + magic_cookie = magic_open(MAGIC_SYMLINK|MAGIC_MIME_TYPE|MAGIC_ERROR); if (magic_cookie == NULL) { warn(_("cannot initialize magic library\n")); return false;