From: Takashi Iwai Date: Wed, 28 Jan 2009 14:00:35 +0000 (+0100) Subject: Fix off_t in kernel struct X-Git-Tag: v1.0.20~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=c821f2e7f2534ece24a10402df3f501536a09cbd;p=alsa-lib.git 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 --- diff --git a/include/sound/asound.h b/include/sound/asound.h index 977b2d6c..62d1e573 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 */ };