author | Andreas Henriksson <andreas@fatal.se> | |
Mon, 10 Jun 2013 21:18:04 +0000 (23:18 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 18 Jul 2013 10:04:23 +0000 (12:04 +0200) | ||
commit | adbba9f9a9701461592ce374558b7e54669d2183 | |
tree | 75eadf6f235e83776015c0327e43eb868e8fb346 | tree | snapshot |
parent | 4def66d6820b46e9044c4e2a0e30b043b330e8d2 | commit | diff |
Restructure to compile with all combos of HAVE_TCA_STATS(2)
We want to compile with all combinations of
HAVE_TCA_STATS(2) set/unset and at the same time
protect against submitting the stats twice (if both
are supported).
Introduce "stats_found" and set and attribute on it
to avoid having the compiler complain about it.
This allows us to bury the specific structs under
each HAVE_TCA_STATS(2) #if ...
We want to compile with all combinations of
HAVE_TCA_STATS(2) set/unset and at the same time
protect against submitting the stats twice (if both
are supported).
Introduce "stats_found" and set and attribute on it
to avoid having the compiler complain about it.
This allows us to bury the specific structs under
each HAVE_TCA_STATS(2) #if ...
src/netlink.c | diff | blob | history |