acpi-build: fix build on glib < 2.14
commitb15654c21acef4d2bc17e6ac528c6c93abbb7e1e
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Nov 2013 12:17:54 +0000 (21 14:17 +0200)
committerAnthony Liguori <aliguori@amazon.com>
Thu, 21 Nov 2013 15:54:03 +0000 (21 07:54 -0800)
treee7cd7e62c271199cb94a4633fce59e5b8c53655d
parent542da88f0013ebb2b2d8ca10becbfebd9948abba
acpi-build: fix build on glib < 2.14

g_array_get_element_size was only added in glib 2.14.
Fortunately we don't use it for any arrays where
element size is > 1, so just add an assert.

Reported-by: Richard Henderson <rth@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1385036128-8753-2-git-send-email-mst@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
hw/i386/acpi-build.c
hw/i386/bios-linker-loader.c