Blame SOURCES/rh1531254-common-Avoid-conflict-with-__bitwise-macro-from-linu.patch

b645d2
From f5b74b966c942feb95a8ddbb7d130540b15b796d Mon Sep 17 00:00:00 2001
b645d2
Message-Id: <f5b74b966c942feb95a8ddbb7d130540b15b796d.1515144438.git.davide.caratti@gmail.com>
b645d2
From: Beniamino Galvani <bgalvani@redhat.com>
b645d2
Date: Mon, 30 Oct 2017 11:14:40 +0100
b645d2
Subject: [PATCH] common: Avoid conflict with __bitwise macro from
b645d2
 linux/types.h
b645d2
b645d2
Undefine the __bitwise macro before defining it to avoid conflicts
b645d2
with the one from linux/types.h; the same is done some lines above
b645d2
when __CHECKER__ is defined. Fixes the following warning:
b645d2
b645d2
  In file included from ../src/l2_packet/l2_packet_linux.c:15:0:
b645d2
  hostap/src/utils/common.h:438:0: warning: "__bitwise" redefined
b645d2
   #define __bitwise
b645d2
b645d2
  In file included from /usr/include/linux/filter.h:9:0,
b645d2
                   from ../src/l2_packet/l2_packet_linux.c:13:
b645d2
  /usr/include/linux/types.h:21:0: note: this is the location of the previous definition
b645d2
   #define __bitwise __bitwise__
b645d2
b645d2
Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
b645d2
---
b645d2
 src/utils/common.h | 1 +
b645d2
 1 file changed, 1 insertion(+)
b645d2
b645d2
diff --git a/src/utils/common.h b/src/utils/common.h
b645d2
index 46e96a65b..fec7f6013 100644
b645d2
--- a/src/utils/common.h
b645d2
+++ b/src/utils/common.h
b645d2
@@ -435,6 +435,7 @@ void perror(const char *s);
b645d2
 #define __bitwise __attribute__((bitwise))
b645d2
 #else
b645d2
 #define __force
b645d2
+#undef __bitwise
b645d2
 #define __bitwise
b645d2
 #endif
b645d2
 
b645d2
-- 
b645d2
2.13.6
b645d2