Whamcloud - gitweb
use special macro for print time_t, cleanup in includes.
[fs/lustre-release.git] / lustre / liblustre / tests / test_common.c
index 29377b1..8b7ba3b 100644 (file)
@@ -14,6 +14,8 @@
 #include <utime.h>
 #include <stdarg.h>
 
+#include <liblustre.h>
+
 #include "test_common.h"
 
 int exit_on_err = 1;
@@ -327,7 +329,7 @@ void t_grep_v(const char *path, char *str)
 
 void t_ls(int fd, char *buf, int size)
 {
-       struct dirent64 *ent;
+       cfs_dirent_t *ent;
        int rc, pos;
        loff_t base = 0;
 
@@ -335,7 +337,7 @@ void t_ls(int fd, char *buf, int size)
        while ((rc = getdirentries64(fd, buf, size, &base)) > 0) {
                pos = 0;
                while (pos < rc) {
-                       ent = (struct dirent64 *) ((char*) buf + pos);
+                       ent = (cfs_dirent_t *) ((char*) buf + pos);
                        printf("%s\n", ent->d_name);
                        pos += ent->d_reclen;
                }