Check also for Linux, as it's not supported on different OS

main
Patrice Mandin 2007-08-19 18:45:01 +02:00
parent a122e7dabf
commit c8760c7999
1 changed files with 1 additions and 1 deletions

View 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;