Mercurial > hg > vamp-plugin-sdk
changeset 97:ca44b3594d2e
* Apply (slightly tweaked) DT_UNKNOWN patch from Alexis Ballier <aballier@gentoo.org>
author | cannam |
---|---|
date | Sun, 18 Nov 2007 10:53:54 +0000 |
parents | 074873a47447 |
children | 896a97349ac5 |
files | vamp-sdk/hostext/PluginLoader.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {