mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
header: Fix build error with old kernel headers
Old development environment doesn't necessarily contain the headers defining __kernel_long_t that is recently used for y2038 timespec conditional. Define it explicitly in such a case. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
abc9f32cf4
commit
bb43546c7a
1 changed files with 10 additions and 0 deletions
|
|
@ -1 +1,11 @@
|
||||||
|
/* workaround for building with old glibc / kernel headers */
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <linux/types.h>
|
||||||
|
#else
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
#ifndef __kernel_long_t
|
||||||
|
#define __kernel_long_t long
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <alsa/sound/uapi/asound.h>
|
#include <alsa/sound/uapi/asound.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue