On 3/18/26 1:11 AM, Cédric Le Goater wrote:
On 3/17/26 20:42, Pierrick Bouvier wrote:
Add stubs for needed functions.

As well, we need to add pixman to qemuutil library dependencies since
pixman is transitively included from pci.h header, which is needed to be
able to include prototypes for stubs we declared.
In file included from include/ui/console.h:4,
                   from ../hw/vfio/vfio-display.h:12,
                   from ../hw/vfio/pci.h:25,
                   from ../hw/vfio/igd-stubs.c:9:
include/ui/qemu-pixman.h:10:10: fatal error: pixman.h: No such file or directory
     10 | #include <pixman.h>
        |          ^~~~~~~~~~

On OpenBSD, opengl headers are not available in default include path,
and thus we need to add opengl to list of qemuutil dependencies.
In file included from /home/root/qemu/include/ui/console.h:9:
/home/root/qemu/include/ui/surface.h:11:11: fatal error: 'epoxy/gl.h' file not 
found

Finally, vfio_pci_hot_reset_info must be forwarded declared on non linux
platforms:
In file included from ../hw/vfio/igd-stubs.c:9:
../hw/vfio/pci.h:265:44: error: 'struct vfio_pci_hot_reset_info' declared 
inside parameter list will not be visible outside of this definition or 
declaration [-Werror]
    265 |                                     struct vfio_pci_hot_reset_info 
**info_p);
        |

Reviewed-by: Cédric Le Goater <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>

Signed-off-by: Pierrick Bouvier <[email protected]>

Duplicated Signed-off-by. I can fix when applying.


Oops, that's a rebase mistake. thanks!

Thanks,

C.


Reply via email to