Check also for Linux, as it's not supported on different OS
authorPatrice Mandin <pmandin@caramail.com>
Sun, 19 Aug 2007 16:45:01 +0000 (18:45 +0200)
committerPatrice Mandin <pmandin@caramail.com>
Sun, 19 Aug 2007 16:45:01 +0000 (18:45 +0200)
shared-core/nouveau_mem.c

index 3c294e4..12d1ba7 100644 (file)
@@ -223,7 +223,7 @@ void nouveau_mem_close(struct drm_device *dev)
 static uint32_t
 nouveau_mem_fb_amount_igp(struct drm_device *dev)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#if defined(LINUX) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19))
        struct drm_nouveau_private *dev_priv = dev->dev_private;
        struct pci_dev *bridge;
        uint32_t mem;