From: Miklos Szeredi Date: Tue, 25 Aug 2009 09:07:59 +0000 (+0000) Subject: Fix missing versioned symbol fuse_get_context@FUSE_2.2 X-Git-Tag: fuse_2_8_1~1 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b290c7f3040c7e27a839cda4f73c30b4004d76bf;p=qemu-gpiodev%2Flibfuse.git Fix missing versioned symbol fuse_get_context@FUSE_2.2 --- diff --git a/ChangeLog b/ChangeLog index 347a12b..bdd61bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-08-25 Miklos Szeredi + + * Fix missing versioned symbol fuse_get_context@FUSE_2.2 + 2009-08-18 Miklos Szeredi * Released 2.8.0 diff --git a/lib/fuse.c b/lib/fuse.c index 68cb603..95cf50b 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -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;