Compatibility fix. Apparently all system don't have d_namlen member
in their DIR struct.
This commit is contained in:
parent
ef89823301
commit
3c3953361f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue