[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 8ebb31: linux-user/signal.c: Rename MC_* defi

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 8ebb31: linux-user/signal.c: Rename MC_* defines
Date: Tue, 30 Jan 2018 07:19:09 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 8ebb314b957403c1c9a3f1cf995f73c6ae9d5d10
  Author: Peter Maydell <address@hidden>
  Date:   2018-01-30 (Tue, 30 Jan 2018)

  Changed paths:
    M linux-user/signal.c

  Log Message:
  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: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
Message-id: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]