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 ef89823301
commit 3c3953361f

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);