OSDN Git Service

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 53cb647..f0db188 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>