From dd942eaa480a0744fd64844f34233900a0da6893 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Oct 2021 04:26:08 +0200 Subject: passt: Fix build with gcc 7, use std=c99, enable some more Clang checkers Unions and structs, you all have names now. Take the chance to enable bugprone-reserved-identifier, cert-dcl37-c, and cert-dcl51-cpp checkers in clang-tidy. Provide a ffsl() weak declaration using gcc built-in. Start reordering includes, but that's not enough for the llvm-include-order checker yet. Signed-off-by: Stefano Brivio --- tap.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tap.c') diff --git a/tap.c b/tap.c index d20503d..57d2613 100644 --- a/tap.c +++ b/tap.c @@ -14,7 +14,6 @@ * #syscalls recvfrom sendto */ -#define _GNU_SOURCE #include #include #include @@ -34,14 +33,14 @@ #include #include #include -#include -#include +#include +#include +#include +#include +#include + #include -#include #include -#include -#include -#include #include #include "checksum.h" -- cgit v1.2.3