blob: 9ded20c56ef2b96f93cda8b14fa428950506b98d [file] [log] [blame]
Lorenz Brun0de18932021-03-11 00:36:48 +01001Copyright 2020 The Monogon Project Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14
15
16From ac0286c4e85bef34485ad3cd1161da5c379af316 Mon Sep 17 00:00:00 2001
17From: Lorenz Brun <lorenz@nexantic.com>
18Date: Tue, 9 Mar 2021 17:18:30 +0100
19Subject: [PATCH 2/2] Fix generated includes
20
21---
22 include/seccomp.h.in | 2 +-
23 src/syscalls.perf.template | 4 ++--
24 2 files changed, 3 insertions(+), 3 deletions(-)
25
26diff --git a/include/seccomp.h.in b/include/seccomp.h.in
27index 1e47de9..444ca93 100644
28--- a/include/seccomp.h.in
29+++ b/include/seccomp.h.in
30@@ -818,7 +818,7 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
31 #define __NR_SCMP_ERROR -1
32 #define __NR_SCMP_UNDEF -2
33
34-#include <seccomp-syscalls.h>
35+#include "include/seccomp-syscalls.h"
36
37 #ifdef __cplusplus
38 }
39diff --git a/src/syscalls.perf.template b/src/syscalls.perf.template
40index f1fd3db..9540ad0 100644
41--- a/src/syscalls.perf.template
42+++ b/src/syscalls.perf.template
43@@ -20,9 +20,9 @@
44 * along with this library; if not, see <http://www.gnu.org/licenses>.
45 */
46
47-#include <seccomp.h>
48+#include "seccomp.h"
49 #include <string.h>
50-#include "syscalls.h"
51+#include "src/syscalls.h"
52
53 %}
54 struct arch_syscall_table;
55--
562.25.1
57