]> git.baikalelectronics.ru Git - kernel.git/commit
uapi glibc compat: fix outer guard of net device flags enum
authorJonas Gorski <jonas.gorski@gmail.com>
Sat, 3 Dec 2016 16:31:45 +0000 (17:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 15:43:32 +0000 (10:43 -0500)
commita2f68934463f976fdf440df4b162ecf4e8c3fd42
tree4b468a33920c67692b4278658d009fefc2c5ccda
parent4c367bc6452f9d260ab2eb38cd50982207523553
uapi glibc compat: fix outer guard of net device flags enum

Fix a wrong condition preventing the higher net device flags
IFF_LOWER_UP etc to be defined if net/if.h is included before
linux/if.h.

The comment makes it clear the intention was to allow partial
definition with either parts.

This fixes compilation of userspace programs trying to use
IFF_LOWER_UP, IFF_DORMANT or IFF_ECHO.

Fixes: e4a9abe110f0 ("uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if.h