diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/asound.h | 9 | ||||
-rw-r--r-- | include/sound/type_compat.h | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h index 89dd7d2f..22e97d9b 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h @@ -1,11 +1,4 @@ /* 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/type_compat.h> #include <alsa/sound/uapi/asound.h> diff --git a/include/sound/type_compat.h b/include/sound/type_compat.h index 5b765f44..953ce566 100644 --- a/include/sound/type_compat.h +++ b/include/sound/type_compat.h @@ -44,6 +44,10 @@ typedef int64_t __s64; #define __be8 __u8 #endif +#ifndef __kernel_long_t +#define __kernel_long_t long +#endif + #ifndef __user #define __user #endif |