Whamcloud - gitweb
b=20668
[fs/lustre-release.git] / libsysio / drivers / native / fs_native.c
index 1909e2e..7980f68 100644 (file)
@@ -56,7 +56,7 @@
 #endif
 #include <errno.h>
 #include <assert.h>
 #endif
 #include <errno.h>
 #include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -969,7 +969,7 @@ native_ifilldirentries(struct native_inode *nino,
        int     err;
        ssize_t cc;
 #if defined(SYSIO_SYS_getdirentries)
        int     err;
        ssize_t cc;
 #if defined(SYSIO_SYS_getdirentries)
-       _SYSIO_OFF_T    waste;
+       _SYSIO_OFF_T    waste=*posp;
 #endif
 
        if (*posp < 0)
 #endif
 
        if (*posp < 0)