aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-08-27 17:16:54 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2010-08-27 17:16:54 +0200
commit64222fbcbd3ed227e4f9c68e1acccd7e68218982 (patch)
tree7fd0ce19a909ee39f741e50732f1f97cffe21f22 /include
parent7cc73a47ddbc25666f0fba1872099eb3245ba25e (diff)
downloadandroid_external_fuse-64222fbcbd3ed227e4f9c68e1acccd7e68218982.tar.gz
android_external_fuse-64222fbcbd3ed227e4f9c68e1acccd7e68218982.tar.bz2
android_external_fuse-64222fbcbd3ed227e4f9c68e1acccd7e68218982.zip
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 'include')
-rw-r--r--include/fuse_compat.h4
-rw-r--r--include/fuse_lowlevel_compat.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/fuse_compat.h b/include/fuse_compat.h
index 225276f..e7497a9 100644
--- a/include/fuse_compat.h
+++ b/include/fuse_compat.h
@@ -65,7 +65,7 @@ struct fuse *fuse_setup_compat25(int argc, char *argv[],
void fuse_teardown_compat22(struct fuse *fuse, int fd, char *mountpoint);
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <sys/statfs.h>
struct fuse_operations_compat22 {
@@ -198,4 +198,4 @@ struct fuse *fuse_new_compat1(int fd, int flags,
void fuse_main_compat1(int argc, char *argv[],
const struct fuse_operations_compat1 *op);
-#endif /* __FreeBSD__ */
+#endif /* __FreeBSD__ || __NetBSD__ */
diff --git a/include/fuse_lowlevel_compat.h b/include/fuse_lowlevel_compat.h
index aba45e6..8de220b 100644
--- a/include/fuse_lowlevel_compat.h
+++ b/include/fuse_lowlevel_compat.h
@@ -72,7 +72,7 @@ size_t fuse_dirent_size(size_t namelen);
char *fuse_add_dirent(char *buf, const char *name, const struct stat *stbuf,
off_t off);
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <sys/statfs.h>
@@ -139,7 +139,7 @@ struct fuse_session *fuse_lowlevel_new_compat(const char *opts,
const struct fuse_lowlevel_ops_compat *op,
size_t op_size, void *userdata);
-#endif /* __FreeBSD__ */
+#endif /* __FreeBSD__ || __NetBSD__ */
struct fuse_chan_ops_compat24 {
int (*receive)(struct fuse_chan *ch, char *buf, size_t size);