Remove most includes in compat.c (#954)
authorBernd Schubert <bernd.schubert@fastmail.fm>
Mon, 27 May 2024 13:24:10 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 13:24:10 +0000 (15:24 +0200)
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.

lib/compat.c

index 0bac39e597f43835ea147bb3763a5eec79a1d7b7..17febacad7943d1cb41f9ab1661b8f1f99bf46d2 100644 (file)
     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