Also, move __kernel_long_t to type_compat.h for the consistency.
Fixes: https://github.com/alsa-project/alsa-lib/issues/171
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
/* 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>
#define __be8 __u8
#endif
+#ifndef __kernel_long_t
+#define __kernel_long_t long
+#endif
+
#ifndef __user
#define __user
#endif