vp-build/srcpkgs/fuse/patches/fuse-headers.patch

14 lines
507 B
Diff

--- include/fuse_common.h
+++ include/fuse_common.h
@@ -28,8 +28,8 @@
#define FUSE_MAKE_VERSION(maj, min) ((maj) * 10 + (min))
#define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION)
-/* This interface uses 64 bit off_t */
-#if _FILE_OFFSET_BITS != 64
+/* This interface uses 64 bit off_t, and only glibc has an implementation with 2 different sizes */
+#if defined(__GLIBC__) && _FILE_OFFSET_BITS != 64
#error Please add -D_FILE_OFFSET_BITS=64 to your compile flags!
#endif