diff --git a/hw/acpi.c b/hw/acpi.c index 97617c4ef57674b33af3f8ccac1cbab035f88e21..8c9dcc51c4b8c403df6017a5f7a73cf5539110e3 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -104,7 +104,7 @@ int acpi_table_add(const char *t) /* now read in the data files, reallocating buffer as needed */ for (f = strtok(buf, ":"); f; f = strtok(NULL, ":")) { - int fd = open(f, O_RDONLY); + int fd = open(f, O_RDONLY | O_BINARY); if (fd < 0) { fprintf(stderr, "can't open file %s: %s\n", f, strerror(errno));