]> xenbits.xensource.com Git - xen.git/commit
libxl/arm: Fix build on arm64 + acpi
authorDaniel Sabogal <dsabogalcc@gmail.com>
Fri, 25 Aug 2017 21:35:47 +0000 (17:35 -0400)
committerWei Liu <wei.liu2@citrix.com>
Tue, 29 Aug 2017 09:46:35 +0000 (10:46 +0100)
commit6657e938bf769768b56ba0c86cd4775b010538a8
tree4a0bd6e1d586dfef58d5def2af250b367ac487bf
parenta8c87a8788e5ce21d6e55e0acdc64a8f26cf5687
libxl/arm: Fix build on arm64 + acpi

With musl, the build fails with the following errors:

  actypes.h:202:2: error: #error unknown ACPI_MACHINE_WIDTH
   #error unknown ACPI_MACHINE_WIDTH
    ^~~~~
  actypes.h:207:9: error: unknown type name ‘acpi_native_uint’
   typedef acpi_native_uint acpi_size;
           ^~~~~~~~~~~~~~~~
  actypes.h:617:3: error: unknown type name ‘acpi_io_address’
     acpi_io_address pblk_address;
     ^~~~~~~~~~~~~~~

This likely went undetected with glibc builds since glibc
indirectly pulls __BITS_PER_LONG from the linux headers
through a standard header. For musl, this is not the case.

Instead, use BITS_PER_LONG to fix the build.

Signed-off-by: Daniel Sabogal <dsabogalcc@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_arm_acpi.c