FS-4278 skypopen: oss driver compiles on kernels >= 3.4.0

This commit is contained in:
Giovanni Maruzzelli 2012-06-20 11:28:28 +02:00
parent d6c482e40f
commit a80b68367c
2 changed files with 6 additions and 1 deletions

View File

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

View File

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