summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Mandin <pmandin@caramail.com>2007-08-19 18:45:01 +0200
committerPatrice Mandin <pmandin@caramail.com>2007-08-19 18:45:01 +0200
commitc8760c7999b8aeb6d51b09c062331f518953a920 (patch)
tree9d5f1170f3dac40b5f064e4923db975c766dd8be
parenta122e7dabfaade751e8f6bb6d1488902fd36a40e (diff)
Check also for Linux, as it's not supported on different OS
-rw-r--r--shared-core/nouveau_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 3c294e4b..12d1ba75 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -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;