Il 09/04/2013 13:30, Markus Armbruster ha scritto: >>> >> We have two virtio-9p.h: >>> >> ./hw/9pfs/virtio-9p.h >>> >> ./include/hw/virtio/virtio-9p.h >>> >> >>> >> which can be confusing. >> > >> > Yes, the first one is only included with a local path. Though I think >> > this is what confused my scripts. > It'll confuse maintenance programmers, too. Rename one of them? For > what it's worth, the second was named virtio-9p-device.h until you > renamed & moved it.
The second isn't named virtio-9p.h. It is named hw/virtio/virtio-9p.h. There is no -Iinclude/hw/virtio path, so you need the full path to include it. If you look at Linux, you have similarly include/scsi/scsi.h (for #include <scsi/scsi.h>) and drivers/scsi/scsi.h (for #include "scsi.h"). Paolo