Odroid C1: fix compiling alsa-lib

This commit is contained in:
Calin Crisan 2020-08-12 23:31:58 +03:00
parent 711d65e2c5
commit 72e3d7f7b6
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff -uNr alsa-lib-1.2.2-orig/include/sound/uapi/asound.h alsa-lib-1.2.2-patched/include/sound/uapi/asound.h
--- alsa-lib-1.2.2-orig/include/sound/uapi/asound.h 2020-08-12 14:42:09.597313755 +0300
+++ alsa-lib-1.2.2-patched/include/sound/uapi/asound.h 2020-08-12 14:43:15.576887697 +0300
@@ -876,6 +876,11 @@
#define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
#define SNDRV_TIMER_IOCTL_TREAD64 _IOW('T', 0xa4, int)
+#ifndef __kernel_long_t
+typedef long __kernel_long_t;
+typedef unsigned long __kernel_ulong_t;
+#endif
+
#if __BITS_PER_LONG == 64
#define SNDRV_TIMER_IOCTL_TREAD SNDRV_TIMER_IOCTL_TREAD_OLD
#else

View File

@ -6,6 +6,7 @@ BR2_ARM_FPU_NEON_VFPV4=y
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-odroidc1"
BR2_OPTIMIZE_2=y
BR2_GLOBAL_PATCH_DIR="board/odroidc1"
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y