]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/signal.c: Rename MC_* defines
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 30 Jan 2018 13:17:19 +0000 (13:17 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 1 Feb 2018 21:22:33 +0000 (15:22 -0600)
commit7e25155a7bd23902d41d6b4e7d3d4f6310e86cc0
tree6c17b46e330980b8f6f279895a004a99dc461ca8
parent80277d7cd5522e8dbfd68413b1a935d9f19be8e8
linux-user/signal.c: Rename MC_* defines

The SPARC code in linux-user/signal.c defines a set of
MC_* constants. On some SPARC hosts these are also defined
by sys/ucontext.h, resulting in build failures:

linux-user/signal.c:2786:0: error: "MC_NGREG" redefined [-Werror]
 #define MC_NGREG 19

In file included from /usr/include/signal.h:302:0,
                 from include/qemu/osdep.h:86,
                 from linux-user/signal.c:19:
/usr/include/sparc64-linux-gnu/sys/ucontext.h:59:0: note: this is the location of the previous definition
 # define MC_NGREG __MC_NGREG

Rename all these constants to SPARC_MC_* to avoid the clash.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1517318239-15764-1-git-send-email-peter.maydell@linaro.org
(cherry picked from commit 8ebb314b957403c1c9a3f1cf995f73c6ae9d5d10)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
linux-user/signal.c