OSDN Git Service

hw/i386/acpi-build: Avoid 'sun' identifier
authorAndrew Deason <adeason@sinenomine.net>
Wed, 16 Mar 2022 03:52:26 +0000 (22:52 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 18 Mar 2022 11:32:13 +0000 (11:32 +0000)
commit9c2d83f5a0ef558f8882998af6cb800101243655
treeae55138599cf36a5ce8af2485cbc1bccc5941dee
parent8900c204df0e521361e2bd31131d5f9089d08000
hw/i386/acpi-build: Avoid 'sun' identifier

On Solaris, 'sun' is #define'd to 1, which causes errors if a variable
is named 'sun'. Slightly change the name of the var for the Slot User
Number so we can build on Solaris.

Reviewed-by: Ani Sinha <ani@anisinha.ca>
Signed-off-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20220316035227.3702-3-adeason@sinenomine.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i386/acpi-build.c