]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Include linux/types.h for __u16/__u32/__u64 type
authorKhem Raj <raj.khem@gmail.com>
Sun, 20 Oct 2024 14:52:33 +0000 (07:52 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 20 Oct 2024 14:54:45 +0000 (07:54 -0700)
This header is included indirectly with glibc but when using musl
it ends up with compilation failure

BcachefsUtils.cc:85:20: error: use of undeclared identifier '__u32'
   85 |             args.dirfd = (__u32) fddst;
      |                           ^

snapper/BcachefsUtils.cc

index e9163ffb4a110c539d68b3db869c2c8ee4f4f998..1d328a78352113352ddd1280ef2382fa26e9f192 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <cstring>
 #include <cerrno>
+#include <linux/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>