From 5ce0f2afec70a1d062b749e1bf7150c21d35281d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Jun 2000 22:51:29 +0000 Subject: [PATCH] define VM_DONTCOPY to zero if undefined --- linux-core/i810_dma.c | 5 +++++ linux/i810_dma.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c index f041f209..2380a434 100644 --- a/linux-core/i810_dma.c +++ b/linux-core/i810_dma.c @@ -37,6 +37,11 @@ #include /* For task queue support */ +/* in case we don't have a 2.3.99-pre6 kernel or later: */ +#ifndef VM_DONTCOPY +#define VM_DONTCOPY 0 +#endif + #define I810_BUF_FREE 2 #define I810_BUF_CLIENT 1 #define I810_BUF_HARDWARE 0 diff --git a/linux/i810_dma.c b/linux/i810_dma.c index f041f209..2380a434 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -37,6 +37,11 @@ #include /* For task queue support */ +/* in case we don't have a 2.3.99-pre6 kernel or later: */ +#ifndef VM_DONTCOPY +#define VM_DONTCOPY 0 +#endif + #define I810_BUF_FREE 2 #define I810_BUF_CLIENT 1 #define I810_BUF_HARDWARE 0