From b818190807a773547a3c4e9b3f094c130b26b81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 13 Oct 2023 12:03:05 -0400 Subject: [PATCH] internal/server/seccomp: Fix clang build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #162 Signed-off-by: Stéphane Graber --- internal/server/seccomp/seccomp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/seccomp/seccomp.go b/internal/server/seccomp/seccomp.go index 92e8912fd0e..636f918cc19 100644 --- a/internal/server/seccomp/seccomp.go +++ b/internal/server/seccomp/seccomp.go @@ -251,7 +251,7 @@ static inline int pidfd_getfd(int pidfd, int fd, int flags) return syscall(__NR_pidfd_getfd, pidfd, fd, flags); } -#define ptr_to_u64(p) ((__aligned_u64)((uintptr_t)(p))) +#define ptr_to_u64(p) ((__u64)((uintptr_t)(p))) static inline int bpf(int cmd, union bpf_attr *attr, size_t size) {