--- test/test-migration.c.old 2013-11-08 20:22:10.000000000 +0000 +++ test/test-migration.c 2013-11-08 18:08:01.000000000 +0000 @@ -36,6 +36,9 @@ size_t len = strlen (dir); char *n = NULL; FcBool ret = FcTrue; +#ifndef DT_DIR + struct stat st; +#endif if (!d) return FcFalse; @@ -53,7 +56,12 @@ strcpy (n, dir); n[len] = '/'; strcpy (&n[len + 1], e->d_name); +#ifndef DT_DIR + lstat(n, &st); + if (S_ISDIR(st.st_mode)) +#else if (e->d_type == DT_DIR) +#endif { if (!unlink_dirs (n)) {