aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <mszeredi@suse.cz>2014-03-18 12:01:45 +0100
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2014-03-18 12:01:45 +0100
commit57d7f5da5506216427886df6ca0e9f2b8b1a25a2 (patch)
treec1e670a42a6e7b7a18d23af9eada7833f8ea63b7 /example
parent61eed2547ac59d6861df5286bf81dea4dc9fa906 (diff)
compile fix for fuse_lo-plus
Diffstat (limited to 'example')
-rw-r--r--example/fuse_lo-plus.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/example/fuse_lo-plus.c b/example/fuse_lo-plus.c
index fcc1eee..adbbbee 100644
--- a/example/fuse_lo-plus.c
+++ b/example/fuse_lo-plus.c
@@ -29,6 +29,48 @@
#include <errno.h>
#include <err.h>
+/* Compat stuff. Doesn't make it work, just makes it compile. */
+#ifndef HAVE_FSTATAT
+#warning fstatat(2) needed by this program
+int fstatat(int dirfd, const char *pathname, struct stat *buf, int flags)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+#ifndef HAVE_OPENAT
+#warning openat(2) needed by this program
+int openat(int dirfd, const char *pathname, int flags, ...)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+#ifndef HAVE_READLINKAT
+#warning readlinkat(2) needed by this program
+ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+#ifndef AT_EMPTY_PATH
+#warning AT_EMPTY_PATH needed by this program
+#define AT_EMPTY_PATH 0
+#endif
+#ifndef AT_SYMLINK_NOFOLLOW
+#warning AT_SYMLINK_NOFOLLOW needed by this program
+#define AT_SYMLINK_NOFOLLOW 0
+#endif
+#ifndef O_PATH
+#warning O_PATH needed by this program
+#define O_PATH 0
+#endif
+#ifndef O_NOFOLLOW
+#warning O_NOFOLLOW needed by this program
+#define O_NOFOLLOW 0
+#endif
+
struct lo_inode {
struct lo_inode *next;
struct lo_inode *prev;