From bb43546c7a3d535576b49f0a729761ba6a348892 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 6 May 2020 22:40:16 +0200 Subject: [PATCH] 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 --- include/sound/asound.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.11.0