From: Miklos S. <mi...@sz...> - 2008-09-08 13:43:01
|
On Sat, 6 Sep 2008, Jan Engelhardt wrote: > On Saturday 2008-09-06 07:16, Conrad Meyer wrote: > > >Hello list, > > > >Recently we ran into a little trouble building the Tux3 FUSE layer on > >different distros. Debian Etch has FUSE 2.5.3, and Fedora 9 has 2.7.3. Across > >these versions the fuse_main() macro grows another parameter. What's the > >expected workaround for C filesystems using FUSE that want to build on > >multiple distros? > > For example autoconf that tests for the number of parameters. > See http://tinyurl.com/6k6hnm on how this is done. You don't even need to play with autoconf, just do #define FUSE_USE_VERSION 26 #include <fuse.h> ... #if FUSE_VERSION >= 26 fuse_main(argc, argv, &my_op, NULL); #else fuse_main(argc, argv, &my_op); #endif But all this is only important if you need some API features from 2.6.x/2.7.x. Otherwise you can just use the old API unconditionally: #define FUSE_USE_VERSION 25 #include <fuse.h> Miklos |