From: Zbigniew Jędrzejewski-Szmek Date: Fri, 20 May 2016 13:12:42 +0000 (-0400) Subject: Make the fix for net/if.h fuckup even worse (#3287) X-Git-Tag: v230~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f270e6bd8b78aedf9f77534d6d11141ea0bf8ca;p=thirdparty%2Fsystemd.git Make the fix for net/if.h fuckup even worse (#3287) The original conflict is fixed in the kernel in v4.6-rc7-40-g4a91cb61bb, but now our work-around causes a compilation failure. Keep the workaround to support 4.5 kernels for now, and layer more ugliness on top. Tested with: kernel-headers-4.6.0-1.fc25.x86_64 glibc-devel-2.23.90-18.fc25.x86_64 kernel-headers-4.5.4-300.fc24.x86_64 glibc-devel-2.23.1-7.fc24.x86_64 kernel-headers-4.4.9-300.fc23.x86_64 glibc-devel-2.22-16.fc23.x86_64 kernel-headers-4.1.13-100.fc21.x86_64 glibc-devel-2.20-8.fc21.x86_64 --- diff --git a/src/shared/firewall-util.c b/src/shared/firewall-util.c index 97865eac4a3..f73108eaa32 100644 --- a/src/shared/firewall-util.c +++ b/src/shared/firewall-util.c @@ -29,12 +29,10 @@ #include #include #include -#include #ifndef IFNAMSIZ -#undef _NET_IF_H -/* Let's make sure to include this one, too, if IFNAMSIZ isn't defined yet, as it is for kernels <= 4.2 */ -#include +#define IFNAMSIZ 16 #endif +#include #include #include #include