From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 05/22] util: Fall-back definitions for SECCOMP_RET_KILL_PROCESS, ETH_{MAX,MIN}_MTU Date: Fri, 28 Jan 2022 19:33:40 +0100 Message-ID: <20220128183357.3407606-6-sbrivio@redhat.com> In-Reply-To: <20220128183357.3407606-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7175333855395604738==" --===============7175333855395604738== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit They're not available on some older toolchains. Signed-off-by: Stefano Brivio --- util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util.h b/util.h index 44c85db..63cd8f9 100644 --- a/util.h +++ b/util.h @@ -8,6 +8,16 @@ void warn(const char *format, ...); void info(const char *format, ...); void debug(const char *format, ...); +#ifndef SECCOMP_RET_KILL_PROCESS +#define SECCOMP_RET_KILL_PROCESS SECCOMP_RET_KILL +#endif +#ifndef ETH_MAX_MTU +#define ETH_MAX_MTU USHRT_MAX +#endif +#ifndef ETH_MIN_MTU +#define ETH_MIN_MTU 68 +#endif + #define CHECK_SET_MIN_MAX(basename, fd) \ do { \ if ((fd) < basename##min) \ -- 2.33.0 --===============7175333855395604738==--