Skip to contentSkip to conversation

block/raw-posix: Build fix for O_ASYNC

PATCH Stefan Hajnoczi 1 participant 1 message Feb 1, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Stefan Hajnoczi

author Applied
#1 lore raw
Quoted 12 lines · Andreas Färber

Commit eeb6b45d48800e96f67ef2a5c80332557fd45ddb (block: raw-posix image file reopen) broke the build on OpenIndiana.

illumos has no O_ASYNC. Exclude it from flags to be compared and instead assert that it is not set where defined.

Cf. e61ab1da7e98357da47c54d8f893b9bd6ff2f7f9 for qemu-ga.

Quoted 7 lines

---
v1 -> v2:
* Instead of excluding O_ASYNC from flag comparison only for CONFIG_SOLARIS, assert that O_ASYNC is not set if defined. Suggested by Paolo.

 block/raw-posix.c |   11 ++++++++++-

1 Datei geändert, 10 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan