diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2007-12-12 11:53:38 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2007-12-12 11:53:38 +0000 |
commit | 918f0ad95b73e506d20488cb8ddd35d1a2524c7c (patch) | |
tree | c2adf3e3c71b94c59b8d64beb9a0ab83ab87119c /lib/fuse_opt.c | |
parent | 0b47f6bc8bfe939f12266ef41cba31a2eb2c5f30 (diff) | |
download | libfuse-918f0ad95b73e506d20488cb8ddd35d1a2524c7c.tar.gz |
Disable old symbol versions if __UCLIBC__ is defined
Diffstat (limited to 'lib/fuse_opt.c')
-rw-r--r-- | lib/fuse_opt.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/fuse_opt.c b/lib/fuse_opt.c index 1c6a315..d10e624 100644 --- a/lib/fuse_opt.c +++ b/lib/fuse_opt.c @@ -7,6 +7,7 @@ */ #include "fuse_opt.h" +#include "fuse_misc.h" #include <stdio.h> #include <stdlib.h> @@ -65,7 +66,8 @@ int fuse_opt_add_arg(struct fuse_args *args, const char *arg) return 0; } -int fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg) +static int fuse_opt_insert_arg_common(struct fuse_args *args, int pos, + const char *arg) { assert(pos <= args->argc); if (fuse_opt_add_arg(args, arg) == -1) @@ -80,6 +82,18 @@ int fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg) return 0; } +int fuse_opt_insert_arg(struct fuse_args *args, int pos, const char *arg) +{ + return fuse_opt_insert_arg_common(args, pos, arg); +} + +int fuse_opt_insert_arg_compat(struct fuse_args *args, int pos, + const char *arg); +int fuse_opt_insert_arg_compat(struct fuse_args *args, int pos, const char *arg) +{ + return fuse_opt_insert_arg_common(args, pos, arg); +} + static int next_arg(struct fuse_opt_context *ctx, const char *opt) { if (ctx->argctr + 1 >= ctx->argc) { @@ -365,3 +379,6 @@ int fuse_opt_parse(struct fuse_args *args, void *data, fuse_opt_free_args(&ctx.outargs); return res; } + +/* This symbol version was mistakenly added to the version script */ +FUSE_SYMVER(".symver fuse_opt_insert_arg_compat,fuse_opt_insert_arg@FUSE_2.5"); |