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

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