alsa-lib-1.0.18-fix-off_t-in-kernel-struct.patch 980 B

123456789101112131415161718192021222324252627282930
  1. From c821f2e7f2534ece24a10402df3f501536a09cbd Mon Sep 17 00:00:00 2001
  2. From: Takashi Iwai <tiwai@suse.de>
  3. Date: Wed, 28 Jan 2009 15:00:35 +0100
  4. Subject: [PATCH] Fix off_t in kernel struct
  5. The off_t in kernel struct (for ioctls) is actually different from the
  6. definition of user-space off_t. The kernel off_t is equial with long
  7. while user-space off_t depends on the large-file support.
  8. Signed-off-by: Takashi Iwai <tiwai@suse.de>
  9. ---
  10. include/sound/asound.h | 2 +-
  11. 1 files changed, 1 insertions(+), 1 deletions(-)
  12. diff --git a/include/sound/asound.h b/include/sound/asound.h
  13. index 977b2d6..62d1e57 100644
  14. --- a/include/sound/asound.h
  15. +++ b/include/sound/asound.h
  16. @@ -402,7 +402,7 @@ struct sndrv_pcm_sw_params {
  17. struct sndrv_pcm_channel_info {
  18. unsigned int channel;
  19. - off_t offset; /* mmap offset */
  20. + long offset; /* mmap offset */
  21. unsigned int first; /* offset to first sample in bits */
  22. unsigned int step; /* samples distance in bits */
  23. };
  24. --
  25. 1.5.6.5