Richard Dawe <rich(at)phekda(dot)gotadsl(dot)co(dot)uk>
[perl-fuse.git] / Fuse.xs
diff --git a/Fuse.xs b/Fuse.xs
index 233139a..adc63b7 100644 (file)
--- a/Fuse.xs
+++ b/Fuse.xs
@@ -2,7 +2,7 @@
 #include "perl.h"
 #include "XSUB.h"
 
-#include <fuse.h>
+#include <fuse/fuse.h>
 
 #undef DEBUGf
 #if 0
@@ -32,14 +32,11 @@ int _PLfuse_getattr(const char *file, struct stat *result) {
                else
                        rv = -ENOENT;
        } else {
+               result->st_blocks = POPi;
                result->st_blksize = POPi;
                result->st_ctime = POPi;
                result->st_mtime = POPi;
                result->st_atime = POPi;
-               /* What the HELL?  Perl says the blockcount is the last argument.
-                * Everything else says the blockcount is the last argument.  So why
-                * was it folded into the middle of the list? */
-               result->st_blocks = POPi;
                result->st_size = POPi;
                result->st_rdev = POPi;
                result->st_gid = POPi;