aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2024-05-27 15:24:10 +0200
committerGitHub <noreply@github.com>2024-05-27 15:24:10 +0200
commit251d2fb0e15316a479cb16476d880d432da62fb6 (patch)
tree0ea2c56bf8b78ff1ef141b2a9b0dfd384276fff5
parent05becec65d7c92cb1ee090934cec5f61dc66c605 (diff)
downloadlibfuse-251d2fb0e15316a479cb16476d880d432da62fb6.tar.gz
Remove most includes in compat.c (#954)
compat.c is supposed to be standalone to provide compat ABI symbols. Including fuse header files can cause conflicts - just the opposite of what compat.c was made for.
-rw-r--r--lib/compat.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/lib/compat.c b/lib/compat.c
index 0bac39e..17febac 100644
--- a/lib/compat.c
+++ b/lib/compat.c
@@ -15,21 +15,12 @@
support version symboling
*/
-#include "fuse_config.h"
-#include "fuse_i.h"
-#include "fuse_misc.h"
-#include "fuse_opt.h"
-#include "fuse_lowlevel.h"
-#include "mount_util.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <unistd.h>
-#include <string.h>
-#include <limits.h>
-#include <errno.h>
-#include <sys/param.h>
+#include "libfuse_config.h"
+
+struct fuse_args;
+struct fuse_cmdline_opts;
+struct fuse_cmdline_opts;
+
/**
* Compatibility ABI symbol for systems that do not support version symboling