From: Miklos Szeredi Date: Wed, 14 Jul 2004 06:24:50 +0000 (+0000) Subject: added patch from Brad Fitzpatrick X-Git-Tag: fuse_1_9~30 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ffa48fb79d6544e4299c76df8f689f8962fab8fe;p=qemu-gpiodev%2Flibfuse.git added patch from Brad Fitzpatrick --- diff --git a/perl/Fuse.xs b/perl/Fuse.xs index 0a460b9..fa75e5c 100644 --- a/perl/Fuse.xs +++ b/perl/Fuse.xs @@ -476,7 +476,7 @@ int _PLfuse_write (const char *file, const char *buf, size_t buflen, off_t off) return rv; } -int _PLfuse_statfs (struct fuse_statfs *st) { +int _PLfuse_statfs (struct statfs *st) { int rv; char *rvstr; dSP; @@ -488,12 +488,12 @@ int _PLfuse_statfs (struct fuse_statfs *st) { rv = call_sv(_PLfuse_callbacks[17],G_ARRAY); SPAGAIN; if(rv > 5) { - st->block_size = POPi; - st->blocks_free = POPi; - st->blocks = POPi; - st->files_free = POPi; - st->files = POPi; - st->namelen = POPi; + st->f_bsize = POPi; + st->f_bfree = POPi; + st->f_blocks = POPi; + st->f_ffree = POPi; + st->f_files = POPi; + st->f_namelen = POPi; if(rv > 6) rv = POPi; else diff --git a/perl/Makefile.PL b/perl/Makefile.PL index d495683..6e66f46 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -13,5 +13,5 @@ WriteMakefile( # Insert -I. if you add *.h files later: 'INC' => '-I../include', # e.g., '-I/usr/include/other' # Un-comment this if you add C files to link with later: - 'OBJECT' => 'Fuse.o ../lib/libfuse.a -lpthread', # link all the C files too + 'OBJECT' => 'Fuse.o ../lib/.libs/libfuse.a -lpthread', # link all the C files too );