From 9aad0ed8c52b517da4f16b167a9e8926bb5d08be Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 15 Apr 2012 13:36:34 +0200 Subject: Provide a fuse_main function To fix fuse detection in various configure.ac application scripts. * src/main.c (fuse_main): New function --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a56d5fbfe..923bc3dd7 100644 --- a/src/main.c +++ b/src/main.c @@ -287,6 +287,14 @@ fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, (fuse_new(fd, NULL, op, op_size)); } +#undef fuse_main +int fuse_main(void); +int fuse_main(void) +{ + fprintf(stderr, "fuse_main is supposed to be used via the macro, not the symbol\n"); + return -1; +} + /* Create a new FUSE filesystem, actually there's nothing for us to do * on the Hurd. -- cgit v1.2.3