forked from Mirrors/freeswitch
FS-4278 skypopen: oss driver compiles on kernels >= 3.4.0
This commit is contained in:
parent
d6c482e40f
commit
a80b68367c
@ -29,7 +29,6 @@
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/cdev.h>
|
||||
|
||||
#include <asm/system.h> /* cli(), *_flags */
|
||||
#include <asm/uaccess.h> /* copy_*_user */
|
||||
|
||||
#include <linux/soundcard.h>
|
||||
|
@ -21,6 +21,12 @@
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/ioctl.h> /* needed for the _IOW etc stuff used later */
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
|
||||
#include <asm/switch_to.h> /* cli(), *_flags */
|
||||
#else
|
||||
#include <asm/system.h> /* cli(), *_flags */
|
||||
#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
|
||||
|
||||
|
||||
#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 18)
|
||||
#define CENTOS_5
|
||||
|
Loading…
Reference in New Issue
Block a user