mirror of https://github.com/mpv-player/mpv
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:
parent
bf84d64dfa
commit
8188f8359c
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue