aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-04 22:17:06 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-06 10:13:43 +0200
commit5a0c88209d2e6cc67a957671485b2f753a9f0891 (patch)
tree6fefe99d938ec6a2e0059a2b72c8b64672c775e7 /example
parented0cfd8c7ce906b10aac895095545d199eafbcc6 (diff)
Removed compat stuff in passthrough_ll
As the comment says, this made it compile but not work. If there is a need, we can add these checks to meson.build to only build this file if the prerequisites are satisfied.
Diffstat (limited to 'example')
-rw-r--r--example/passthrough_ll.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 0175363..36ca120 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -61,48 +61,6 @@ struct _uintptr_to_must_hold_fuse_ino_t_dummy_struct \
((sizeof(fuse_ino_t) >= sizeof(uintptr_t)) ? 1 : -1); };
#endif
-/* 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;