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

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