From: Takashi Iwai Date: Wed, 6 May 2020 20:40:16 +0000 (+0200) Subject: header: Fix build error with old kernel headers X-Git-Tag: v1.2.3~67 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bb43546c7a3d535576b49f0a729761ba6a348892;p=alsa-lib.git 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 --- diff --git a/include/sound/asound.h b/include/sound/asound.h index 3be4d850..89dd7d2f 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h @@ -1 +1,11 @@ +/* workaround for building with old glibc / kernel headers */ +#ifdef __linux__ +#include +#else +#include +#endif +#ifndef __kernel_long_t +#define __kernel_long_t long +#endif + #include