OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a122e7d
)
Check also for Linux, as it's not supported on different OS
author
Patrice Mandin
<pmandin@caramail.com>
Sun, 19 Aug 2007 16:45:01 +0000
(18:45 +0200)
committer
Patrice Mandin
<pmandin@caramail.com>
Sun, 19 Aug 2007 16:45:01 +0000
(18:45 +0200)
shared-core/nouveau_mem.c
patch
|
blob
|
history
diff --git
a/shared-core/nouveau_mem.c
b/shared-core/nouveau_mem.c
index
3c294e4
..
12d1ba7
100644
(file)
--- 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;