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

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