Thanks for the library support (PR #59); this helps us a lot!!
One challenge we ran into is that ll.h includes (via some intermediate headers IIRC) the Autoconf-produced config.h. This clashes with two things:
- our own Autoconf-produced
config.h, and
- something in the system headers, because it defines
_POSIX_C_SOURCE to a different value than our project.
We did find a workaround:
#define SQFS_CONFIG_H
#define FUSE_USE_VERSION 32
#include <squashfuse/ll.h>
(Note that we are libfuse3 only so that's why it seemed OK to define FUSE_USE_VERSION unconditionally.)
But it would be nice if there were an externally-facing header to include.
Thanks for the library support (PR #59); this helps us a lot!!
One challenge we ran into is that
ll.hincludes (via some intermediate headers IIRC) the Autoconf-producedconfig.h. This clashes with two things:config.h, and_POSIX_C_SOURCEto a different value than our project.We did find a workaround:
(Note that we are libfuse3 only so that's why it seemed OK to define
FUSE_USE_VERSIONunconditionally.)But it would be nice if there were an externally-facing header to include.