]> git.ipfire.org Git - thirdparty/iproute2.git/commit
libnetlink: define __aligned conditionally
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 26 Oct 2020 11:32:52 +0000 (12:32 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 28 Oct 2020 17:24:02 +0000 (10:24 -0700)
commit9fc5bf734f6b25559a3227d8789efbc67156e575
tree8703c52a6c0647e8e7a3c3907090282e7a1479c0
parenteb12cc9ae121994db8ad434b6a71407ab454c144
libnetlink: define __aligned conditionally

On some systems (e.g. current Debian/stable) the inclusion
of utils.h pulled in some other things that may end up
defining __aligned, in a possibly different way than what
we had here.

Use our own definition only if there isn't one already.

Fixes: d5acae244f9d ("libnetlink: add nl_print_policy() helper")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/libnetlink.c