Fix OpenBSD build
Hi Blue Swirl,
did I miss the patch posted for this commit? I can't find it on the mailing list. I think the BlockDriver declarations should really stay at the end of the source file of each driver.
What about using a different way to get rid of the static forward declaration, namely using bdrv_find_format() instead of referencing it directly? If you agree I'll post patches to revert your change and use this solution instead.
Kevin
Quoted 10 lines · Kevin Wolf
Hi Blue Swirl,
did I miss the patch posted for this commit? I can't find it on the mailing list. I think the BlockDriver declarations should really stay at the end of the source file of each driver.
What about using a different way to get rid of the static forward declaration, namely using
bdrv_find_format()instead of referencing it directly? If you agree I'll post patches to revert your change and use this solution instead.
Somehow I can't form in my mind the change from your description, but I'd be fine with that too if it also compiles in OpenBSD.