# HG changeset patch # User cannam # Date 1195383234 0 # Node ID ca44b3594d2e6ec665a627a8c8f5231f9fca990e # Parent 074873a4744738401d42f2f0e48bdaf0afad2b4e * Apply (slightly tweaked) DT_UNKNOWN patch from Alexis Ballier diff -r 074873a47447 -r ca44b3594d2e vamp-sdk/hostext/PluginLoader.cpp --- a/vamp-sdk/hostext/PluginLoader.cpp Sun Nov 18 10:46:28 2007 +0000 +++ b/vamp-sdk/hostext/PluginLoader.cpp Sun Nov 18 10:53:54 2007 +0000 @@ -554,9 +554,11 @@ struct dirent *e = 0; while ((e = readdir(d))) { + + if (!(e->d_type & DT_REG) && (e->d_type != DT_UNKNOWN)) continue; - if (!(e->d_type & DT_REG) || !e->d_name) continue; - + if (!e->d_name) continue; + size_t len = strlen(e->d_name); if (len < extlen + 2 || e->d_name + len - extlen - 1 != "." + extension) {