void-packages/srcpkgs/snapper/patches/fix-missing-include-musl.patch
2024-10-31 20:23:44 -04:00

28 lines
829 B
Diff

From d103eaeae169708ca567f092182a89b79e5ab9db Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 20 Oct 2024 07:52:33 -0700
Subject: [PATCH] Include linux/types.h for __u16/__u32/__u64 type
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/snapper/BcachefsUtils.cc b/snapper/BcachefsUtils.cc
index e9163ffb..1d328a78 100644
--- a/snapper/BcachefsUtils.cc
+++ b/snapper/BcachefsUtils.cc
@@ -24,6 +24,7 @@
#include <cstring>
#include <cerrno>
+#include <linux/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>