From 913c312c8e46dbc1d604df66f31fcb65f2955ed0 Mon Sep 17 00:00:00 2001 From: Markus Kauppila Date: Sat, 11 Jun 2011 08:11:03 -0700 Subject: [PATCH] Compatibility fix. Apparently all system don't have d_namlen member in their DIR struct. --- test/test-automation/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-automation/runner.c b/test/test-automation/runner.c index 9acec70d7..5f3d05269 100644 --- a/test/test-automation/runner.c +++ b/test/test-automation/runner.c @@ -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);