local.h: use __kernel_off_t from <linux/types.h>

Also, make the empty definitions __user and __force conditional.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2013-07-23 14:50:41 +02:00
parent 12a2928b9d
commit b3b53a1bec

View file

@ -32,6 +32,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <sys/poll.h> #include <sys/poll.h>
#include <errno.h> #include <errno.h>
#include <linux/types.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include "config.h" #include "config.h"
@ -114,9 +115,12 @@
#define snd_ctl_tlv sndrv_ctl_tlv #define snd_ctl_tlv sndrv_ctl_tlv
/* kill and replace kernel-specific types */ /* kill and replace kernel-specific types */
#ifndef __user
#define __user #define __user
#endif
#ifndef __force
#define __force #define __force
#define __kernel_off_t off_t #endif
#include <sound/asound.h> #include <sound/asound.h>