Commit 3c395336 authored by Markus Kauppila's avatar Markus Kauppila

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

in their DIR struct.
parent ef898233
...@@ -129,7 +129,7 @@ ScanForTestSuites(char *directoryName, char *extension) ...@@ -129,7 +129,7 @@ ScanForTestSuites(char *directoryName, char *extension)
} }
while(entry = readdir(directory)) { while(entry = readdir(directory)) {
if(entry->d_namlen > 2) { // discards . and .. if(strlen(entry->d_name) > 2) { // discards . and ..
const char *delimiters = "."; const char *delimiters = ".";
char *name = strtok(entry->d_name, delimiters); char *name = strtok(entry->d_name, delimiters);
char *ext = strtok(NULL, delimiters); char *ext = strtok(NULL, delimiters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment