summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-01-28 15:33:08 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-01-28 15:33:08 +0000
commitc8cfd7b5103d304dbd3784bfdceb7c15cf8af85f (patch)
treed101b34b10f31183427c8f65b6137b18fc469bf4 /package
parent7b83993c3e92c06521278e864e9c112e0ec6aefe (diff)
downloadbuildroot-novena-c8cfd7b5103d304dbd3784bfdceb7c15cf8af85f.tar.gz
buildroot-novena-c8cfd7b5103d304dbd3784bfdceb7c15cf8af85f.zip
alsa-lib: fix build with largefile on 32bit archs
Thanks to Will Wagner <will_wagner@carallon.com> for reporting and working with upstream to get it fixed. Patch from alsa-lib.git.
Diffstat (limited to 'package')
-rw-r--r--package/multimedia/alsa-lib/alsa-lib-1.0.18-fix-off_t-in-kernel-struct.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/multimedia/alsa-lib/alsa-lib-1.0.18-fix-off_t-in-kernel-struct.patch b/package/multimedia/alsa-lib/alsa-lib-1.0.18-fix-off_t-in-kernel-struct.patch
new file mode 100644
index 000000000..7dfde9498
--- /dev/null
+++ b/package/multimedia/alsa-lib/alsa-lib-1.0.18-fix-off_t-in-kernel-struct.patch
@@ -0,0 +1,30 @@
+From c821f2e7f2534ece24a10402df3f501536a09cbd Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Wed, 28 Jan 2009 15:00:35 +0100
+Subject: [PATCH] Fix off_t in kernel struct
+
+The off_t in kernel struct (for ioctls) is actually different from the
+definition of user-space off_t. The kernel off_t is equial with long
+while user-space off_t depends on the large-file support.
+
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+---
+ include/sound/asound.h | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/include/sound/asound.h b/include/sound/asound.h
+index 977b2d6..62d1e57 100644
+--- a/include/sound/asound.h
++++ b/include/sound/asound.h
+@@ -402,7 +402,7 @@ struct sndrv_pcm_sw_params {
+
+ struct sndrv_pcm_channel_info {
+ unsigned int channel;
+- off_t offset; /* mmap offset */
++ long offset; /* mmap offset */
+ unsigned int first; /* offset to first sample in bits */
+ unsigned int step; /* samples distance in bits */
+ };
+--
+1.5.6.5
+