]> git.alsa-project.org Git - alsa-lib.git/commitdiff
local.h: use __kernel_off_t from <linux/types.h>
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Jul 2013 12:50:41 +0000 (14:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Jul 2013 12:50:41 +0000 (14:50 +0200)
Also, make the empty definitions __user and __force conditional.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/local.h

index 53cb647df7c4b5a9ac7a1ded31a26076b36b5574..f0db188ee5800924ba64cfa84b7bd428cdaaab25 100644 (file)
@@ -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"
 #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>