Compatibility fix. Apparently all system don't have d_namlen member

in their DIR struct.
This commit is contained in:
Markus Kauppila
2011-06-11 08:11:03 -07:00
parent 9eb8995a5d
commit 913c312c8e

View File

@@ -129,7 +129,7 @@ ScanForTestSuites(char *directoryName, char *extension)
}
while(entry = readdir(directory)) {
if(entry->d_namlen > 2) { // discards . and ..
if(strlen(entry->d_name) > 2) { // discards . and ..
const char *delimiters = ".";
char *name = strtok(entry->d_name, delimiters);
char *ext = strtok(NULL, delimiters);