aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-07-07 03:52:37 -0700
committerSteve Kondik <shade@chemlab.org>2013-07-07 14:05:13 -0700
commitf36e7c5806dbe8d96e20a4632b805d814ac14b01 (patch)
treef30bf8d20920da8e56879a93016d3a215cae1d23 /include
parentd44bf3a4ac1ce1b56672ac9ae4a5caa3a8ee6844 (diff)
downloadandroid_external_fuse-f36e7c5806dbe8d96e20a4632b805d814ac14b01.tar.gz
android_external_fuse-f36e7c5806dbe8d96e20a4632b805d814ac14b01.tar.bz2
android_external_fuse-f36e7c5806dbe8d96e20a4632b805d814ac14b01.zip
Support for building on Android
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h3
-rw-r--r--include/fuse_common.h8
-rw-r--r--include/fuse_compat.h2
-rw-r--r--include/fuse_lowlevel_compat.h2
-rw-r--r--include/ulockmgr.h2
5 files changed, 17 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
index c657e67..6ad8ee7 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -30,6 +30,9 @@
#include <utime.h>
#include <sys/types.h>
#include <sys/stat.h>
+#if defined(__ANDROID__)
+#include <pthread.h>
+#endif
#include <sys/statvfs.h>
#include <sys/uio.h>
diff --git a/include/fuse_common.h b/include/fuse_common.h
index a4d980d..882caf0 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -15,6 +15,10 @@
#ifndef _FUSE_COMMON_H_
#define _FUSE_COMMON_H_
+#if defined(__ANDROID__)
+#define _OFF_T_DEFINED_
+#endif
+
#include "fuse_opt.h"
#include <stdint.h>
#include <sys/types.h>
@@ -33,6 +37,10 @@
#error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
#endif
+#if defined(__ANDROID__)
+typedef loff_t off_t;
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/include/fuse_compat.h b/include/fuse_compat.h
index e7497a9..3bfaa25 100644
--- a/include/fuse_compat.h
+++ b/include/fuse_compat.h
@@ -9,6 +9,8 @@
/* these definitions provide source compatibility to prior versions.
Do not include this file directly! */
+#include "fuse_lowlevel.h"
+
struct fuse_operations_compat25 {
int (*getattr) (const char *, struct stat *);
int (*readlink) (const char *, char *, size_t);
diff --git a/include/fuse_lowlevel_compat.h b/include/fuse_lowlevel_compat.h
index 8de220b..4fff57a 100644
--- a/include/fuse_lowlevel_compat.h
+++ b/include/fuse_lowlevel_compat.h
@@ -9,6 +9,8 @@
/* these definitions provide source compatibility to prior versions.
Do not include this file directly! */
+#include "fuse_common.h"
+
struct fuse_lowlevel_ops_compat25 {
void (*init) (void *userdata);
void (*destroy) (void *userdata);
diff --git a/include/ulockmgr.h b/include/ulockmgr.h
index ad55579..c3ceef5 100644
--- a/include/ulockmgr.h
+++ b/include/ulockmgr.h
@@ -6,6 +6,8 @@
See the file COPYING.LIB.
*/
+#include "fuse_lowlevel.h"
+
#include <stdint.h>
#include <fcntl.h>
#include <sys/types.h>