Mercurial > mplayer.hg
diff drivers/mga_vid.c @ 3125:d62aa0b7fd68
use <linux/slab.h> instead of <linux/malloc.h> for kernels 2.4.9+
author | szabi |
---|---|
date | Sun, 25 Nov 2001 23:34:37 +0000 |
parents | 9acd3e75be48 |
children | 72d8a4d0de18 |
line wrap: on
line diff
--- a/drivers/mga_vid.c Sun Nov 25 20:19:32 2001 +0000 +++ b/drivers/mga_vid.c Sun Nov 25 23:34:37 2001 +0000 @@ -39,7 +39,13 @@ #include <linux/mm.h> #include <linux/string.h> #include <linux/errno.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10) #include <linux/malloc.h> +#else +#include <linux/slab.h> +#endif + #include <linux/pci.h> #include <linux/ioport.h> #include <linux/init.h>