| Lorenz Brun | 0de1893 | 2021-03-11 00:36:48 +0100 | [diff] [blame] | 1 | Copyright 2020 The Monogon Project Authors. | 
 | 2 |  | 
 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); | 
 | 4 | you may not use this file except in compliance with the License. | 
 | 5 | You may obtain a copy of the License at | 
 | 6 |  | 
 | 7 |   http://www.apache.org/licenses/LICENSE-2.0 | 
 | 8 |  | 
 | 9 | Unless required by applicable law or agreed to in writing, software | 
 | 10 | distributed under the License is distributed on an "AS IS" BASIS, | 
 | 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
 | 12 | See the License for the specific language governing permissions and | 
 | 13 | limitations under the License. | 
 | 14 |  | 
 | 15 |  | 
 | 16 | From ac0286c4e85bef34485ad3cd1161da5c379af316 Mon Sep 17 00:00:00 2001 | 
 | 17 | From: Lorenz Brun <lorenz@nexantic.com> | 
 | 18 | Date: Tue, 9 Mar 2021 17:18:30 +0100 | 
 | 19 | Subject: [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 |  | 
 | 26 | diff --git a/include/seccomp.h.in b/include/seccomp.h.in | 
 | 27 | index 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 |  } | 
 | 39 | diff --git a/src/syscalls.perf.template b/src/syscalls.perf.template | 
 | 40 | index 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 | --  | 
 | 56 | 2.25.1 | 
 | 57 |  |