Skip to content

Commit 281ac8b

Browse files
committed
Use macroExists to check for abi support
Signed-off-by: Brad Davidson <[email protected]>
1 parent 33ccbb6 commit 281ac8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

contrib/apparmor/template.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func loadData(name string) (*data, error) {
118118
Name: name,
119119
}
120120

121+
if macroExists("abi/3.0") {
122+
p.Imports = append(p.Imports, "abi <abi/3.0>,")
123+
}
121124
if macroExists("tunables/global") {
122125
p.Imports = append(p.Imports, "#include <tunables/global>")
123126
} else {

0 commit comments

Comments
 (0)