mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
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:
parent
12a2928b9d
commit
b3b53a1bec
1 changed files with 5 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <stdarg.h>
|
||||
#include <sys/poll.h>
|
||||
#include <errno.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#include "config.h"
|
||||
|
|
@ -114,9 +115,12 @@
|
|||
#define snd_ctl_tlv sndrv_ctl_tlv
|
||||
|
||||
/* kill and replace kernel-specific types */
|
||||
#ifndef __user
|
||||
#define __user
|
||||
#endif
|
||||
#ifndef __force
|
||||
#define __force
|
||||
#define __kernel_off_t off_t
|
||||
#endif
|
||||
|
||||
#include <sound/asound.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue