diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-08-27 17:16:54 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-08-27 17:16:54 +0200 |
commit | 64222fbcbd3ed227e4f9c68e1acccd7e68218982 (patch) | |
tree | 7fd0ce19a909ee39f741e50732f1f97cffe21f22 /lib/helper.c | |
parent | 7cc73a47ddbc25666f0fba1872099eb3245ba25e (diff) |
Add NetBSD support
The bulk of it is just about adding ifdef __NetBSD__ where there is
already an ifdef __FreeBSD__
Add a arch=netbsd to deal with NetBSD specifics. I suggests that
arch=bsd could be renamed to arch=freebsd
NetBSD specific linking with -lperfuse
NetBSD patches to lib/mount.c. It turned to be less itrusive to patch
mount;c than mount_bsd.c. I suggest mount_bsd.c could be renamed to
mount_freebsd.c
Patch from Emmanuel Dreyfus
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.c b/lib/helper.c index 3d0db4a..81eedec 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -357,7 +357,7 @@ int fuse_version(void) #include "fuse_compat.h" -#ifndef __FreeBSD__ +#if !defined(__FreeBSD__) && !defined(__NetBSD__) struct fuse *fuse_setup_compat22(int argc, char *argv[], const struct fuse_operations_compat22 *op, @@ -415,7 +415,7 @@ FUSE_SYMVER(".symver fuse_teardown,__fuse_teardown@"); FUSE_SYMVER(".symver fuse_main_compat2,fuse_main@"); FUSE_SYMVER(".symver fuse_main_real_compat22,fuse_main_real@FUSE_2.2"); -#endif /* __FreeBSD__ */ +#endif /* __FreeBSD__ || __NetBSD__ */ struct fuse *fuse_setup_compat25(int argc, char *argv[], |