Fix missing versioned symbol fuse_get_context@FUSE_2.2
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 25 Aug 2009 09:07:59 +0000 (09:07 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Tue, 25 Aug 2009 09:07:59 +0000 (09:07 +0000)
ChangeLog
lib/fuse.c

index 347a12b7594d8e70fdce90b30079ccc6c1541e9d..bdd61bf732ca2a8af6a1a8234389944016168137 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-25  Miklos Szeredi <miklos@szeredi.hu>
+
+       * Fix missing versioned symbol fuse_get_context@FUSE_2.2
+
 2009-08-18  Miklos Szeredi <miklos@szeredi.hu>
 
        * Released 2.8.0
index 68cb60394d2fd814b1b6cf8bea27b0cbb8b901d2..95cf50bad19aa6bc9bfc83777052ec646c6155ac 100644 (file)
@@ -3455,6 +3455,18 @@ struct fuse_context *fuse_get_context(void)
        return &fuse_get_context_internal()->ctx;
 }
 
+/*
+ * The size of fuse_context got extended, so need to be careful about
+ * incompatibility (i.e. a new binary cannot work with an old
+ * library).
+ */
+struct fuse_context *fuse_get_context_compat22(void);
+struct fuse_context *fuse_get_context_compat22(void)
+{
+       return &fuse_get_context_internal()->ctx;
+}
+FUSE_SYMVER(".symver fuse_get_context_compat22,fuse_get_context@FUSE_2.2");
+
 int fuse_getgroups(int size, gid_t list[])
 {
        fuse_req_t req = fuse_get_context_internal()->req;