acpitable: open the data file in binary mode
commit5facfb4934221cac2c267e529d7ebab165103bc9
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 17 Jan 2013 10:53:52 +0000 (17 14:53 +0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 21 Jan 2013 10:08:05 +0000 (21 11:08 +0100)
tree27c28b672b0f5bd91a4708eb61fce13e35bdb626
parentd0f54533eb484028f54d3f9810d504cb63f323ee
acpitable: open the data file in binary mode

-acpitable {file|data}=file reads the content of file, but it is
in binary form, so the file should be opened usin O_BINARY flag.
On *nix it is a no-op, but on windows and other weird platform
it is really needed.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/acpi.c