use <linux/slab.h> instead of <linux/malloc.h> for kernels 2.4.9+

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3126 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabi 2001-11-25 23:34:37 +00:00
parent bf84d64dfa
commit 8188f8359c
2 changed files with 12 additions and 0 deletions

View File

@ -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>

View File

@ -23,7 +23,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/init.h>
//#include <linux/videodev.h>