aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-04-13 13:15:07 +0200
committerTakashi Iwai <tiwai@suse.de>2010-04-13 13:15:07 +0200
commitcba6252959008249d1cd105e995a76345fa148e6 (patch)
treea779fe44e05ba8a3954098abd6ebf8c6cc4e85e0
parentb1b963eca68597e9a9792ad5d349f010676794c2 (diff)
downloadalsa-driver-build-unstable-cba6252959008249d1cd105e995a76345fa148e6.tar.gz
Add no_llseek and nonseekable_open() wrappers for older kernels
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/adriver.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/adriver.h b/include/adriver.h
index 64ddbf5a5..cd0542804 100644
--- a/include/adriver.h
+++ b/include/adriver.h
@@ -1994,4 +1994,14 @@ blocking_notifier_chain_unregister(struct blocking_notifier_head *nh,
#endif /* BLOCKING_INIT_NOTIFIER_HEAD */
#endif /* <2.6.17 */
+/* no_llseek() */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
+#define no_llseek NULL
+#endif
+
+/* nonseekable_open() */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 8)
+#define nonseekable_open(i,f) 0
+#endif
+
#endif /* __SOUND_LOCAL_DRIVER_H */