]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: fix compilation with old gcc (< 4.6)
authorJulien Floret <julien.floret@6wind.com>
Thu, 7 Jan 2016 13:03:13 +0000 (14:03 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Jan 2016 16:23:36 +0000 (08:23 -0800)
commit8f80d450c3cb0996d839996807b77ca28bd4da09
treea65659be8adc009012dbddc94d912aa006cb9f98
parentf921f567d1b9a7d6ad9b99049c7df816c47f92eb
tc: fix compilation with old gcc (< 4.6)

gcc < 4.6 does not handle C11 syntax for the static initialization of
anonymous struct/union, hence the following error:

tc_bpf.c:260: error: unknown field map_type specified in initializer

Signed-off-by: Julien Floret <julien.floret@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
tc/tc_bpf.c