Fix a typo, and call fuse_version after 'bootstrap' is done.
authorDerrik Pates <demon@now.ai>
Wed, 10 Aug 2011 02:22:46 +0000 (20:22 -0600)
committerDerrik Pates <demon@now.ai>
Wed, 10 Aug 2011 02:22:46 +0000 (20:22 -0600)
Fuse.pm

diff --git a/Fuse.pm b/Fuse.pm
index 5a1f5d9..0bd25cc 100755 (executable)
--- a/Fuse.pm
+++ b/Fuse.pm
@@ -25,9 +25,6 @@ our %EXPORT_TAGS = (
                    'ioctl' => [ qw(FUSE_IOCTL_COMPAT FUSE_IOCTL_UNRESTRICTED FUSE_IOCTL_RETRY FUSE_IOCTL_MAX_IOV) ],
                    );
 
-if (fuse_version() >= 2.8) {
-    push(@{$EXPORT_TAGS{'all'}}, qw(notify_poll pollhandle_destroy));
-
 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
 
 our @EXPORT = ();
@@ -67,6 +64,10 @@ sub AUTOLOAD {
 
 bootstrap Fuse $VERSION;
 
+if (fuse_version() >= 2.8) {
+       push(@{$EXPORT_TAGS{'all'}}, qw(notify_poll pollhandle_destroy));
+}
+
 use constant FUSE_IOCTL_COMPAT         => (1 << 0);
 use constant FUSE_IOCTL_UNRESTRICTED   => (1 << 1);
 use constant FUSE_IOCTL_RETRY          => (1 << 2);