From a30ea1256c6ce39f24394ef004bad9605e29ccee Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Wed, 15 Dec 2021 13:20:28 -0600 Subject: [PATCH] pahole: fix more __always_inline issues --- srcpkgs/pahole/patches/fix_always_inline.patch | 13 +++++++++++++ srcpkgs/pahole/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/srcpkgs/pahole/patches/fix_always_inline.patch b/srcpkgs/pahole/patches/fix_always_inline.patch index 6ba75e61c51..950e6b635f5 100644 --- a/srcpkgs/pahole/patches/fix_always_inline.patch +++ b/srcpkgs/pahole/patches/fix_always_inline.patch @@ -24,3 +24,16 @@ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +--- a/lib/bpf/src/gen_loader.c ++++ b/lib/bpf/src/gen_loader.c +@@ -1,5 +1,10 @@ + // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) + /* Copyright (c) 2021 Facebook */ ++ ++#ifndef __always_inline ++#define __always_inline inline ++#endif ++ + #include + #include + #include diff --git a/srcpkgs/pahole/template b/srcpkgs/pahole/template index c68060d970d..cf86686a63f 100644 --- a/srcpkgs/pahole/template +++ b/srcpkgs/pahole/template @@ -1,7 +1,7 @@ # Template file for 'pahole' pkgname=pahole version=1.23 -revision=1 +revision=2 wrksrc="dwarves-${version}" build_style=cmake configure_args="-D__LIB=lib"