summaryrefslogtreecommitdiff
path: root/hw/virtio-pci.c
diff options
context:
space:
mode:
authorgiwoong.kim <giwoong.kim@samsung.com>2012-07-20 21:26:39 +0900
committergiwoong.kim <giwoong.kim@samsung.com>2012-07-20 21:26:39 +0900
commite9a5aef8d4176f41750d28a22afba95d22387843 (patch)
tree83a18a502b83de4ef695a048ad8b7eb6dab5c677 /hw/virtio-pci.c
parenta9190ee2977a58d83820a155d188c566905d1870 (diff)
downloadqemu-e9a5aef8d4176f41750d28a22afba95d22387843.tar.gz
qemu-e9a5aef8d4176f41750d28a22afba95d22387843.tar.bz2
qemu-e9a5aef8d4176f41750d28a22afba95d22387843.zip
[Title] Fix several build issues on Mac
[Type] [Module] Emulator [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
Diffstat (limited to 'hw/virtio-pci.c')
-rw-r--r--hw/virtio-pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index ce14a0d352..bc14b53fa5 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -779,7 +779,7 @@ static int virtio_balloon_exit_pci(PCIDevice *pci_dev)
return virtio_exit_pci(pci_dev);
}
-//#ifndef _WIN32
+#ifndef CONFIG_DARWIN
extern VirtIODevice *virtio_gl_init(DeviceState *dev);
static int virtio_gl_init_pci(PCIDevice *pci_dev)
{
@@ -793,7 +793,7 @@ static int virtio_gl_init_pci(PCIDevice *pci_dev)
virtio_init_pci(proxy, vdev);
return 0;
}
-//#endif
+#endif
static PCIDeviceInfo virtio_info[] = {
{
@@ -880,7 +880,7 @@ static PCIDeviceInfo virtio_info[] = {
},
.qdev.reset = virtio_pci_reset,
},{
-//#ifndef _WIN32
+#ifndef CONFIG_DARWIN
.qdev.name = "virtio-gl-pci",
.qdev.alias = "virtio-gl",
.qdev.size = sizeof(VirtIOPCIProxy),
@@ -895,7 +895,7 @@ static PCIDeviceInfo virtio_info[] = {
},
.qdev.reset = virtio_pci_reset,
},{
-//#endif
+#endif
/* end of list */
}
};