[PATCH] common: avoid conflict with __bitwise and __force from linux/types.h
Johannes Berg
johannes at sipsolutions.net
Fri Sep 15 06:34:40 PDT 2017
On Fri, 2017-09-15 at 14:37 +0200, Beniamino Galvani wrote:
> Namespace the __bitwise and __force macros so that they don't
> conflict
> with the ones from linux/types.h:
>
> In file included from ../src/l2_packet/l2_packet_linux.c:15:0:
> hostap/src/utils/common.h:438:0: warning: "__bitwise" redefined
> #define __bitwise
>
> In file included from /usr/include/linux/filter.h:9:0,
> from ../src/l2_packet/l2_packet_linux.c:13:
> /usr/include/linux/types.h:21:0: note: this is the location of the
> previous definition
> #define __bitwise __bitwise__
I think we can just #ifdef them because it's a compatible, if not
exactly identical, definition?
johannes
More information about the Hostap
mailing list