define VM_DONTCOPY to zero if undefined
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 6 Jun 2000 22:51:29 +0000 (22:51 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 6 Jun 2000 22:51:29 +0000 (22:51 +0000)
linux-core/i810_dma.c
linux/i810_dma.c

index f041f20..2380a43 100644 (file)
 
 #include <linux/interrupt.h>   /* 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
index f041f20..2380a43 100644 (file)
 
 #include <linux/interrupt.h>   /* 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