Incorporate Siteshwar's patch for building on Linux

This commit is contained in:
ridiculousfish
2012-01-05 13:58:48 -08:00
parent 6f45832aed
commit 4df57fda09
16 changed files with 55 additions and 153 deletions

View File

@@ -576,7 +576,7 @@ xdg_mime_media_type_equal (const char *mime_a,
xdg_mime_init ();
sep = strchr (mime_a, '/');
sep = const_cast<char*>(strchr (mime_a, '/'));
if (sep && strncmp (mime_a, mime_b, sep - mime_a + 1) == 0)
return 1;