toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / libamcodec / 0001-Include-stdint.h-where-needed.patch
blob6d588f6b1564dc38c61ce36496b265da655f99c2
1 From ff6d4326f839321c079d60ae9301c6202942f675 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 27 Aug 2016 14:31:04 +0200
4 Subject: [PATCH] Include <stdint.h> where needed
6 The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
7 included when such types are used.
9 Not including <stdint.h> might work by accident with some C libraries
10 due to it being included by other headers, but it for example causes
11 build failures with the musl C library.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 Upstream-status: https://github.com/mdrjr/c2_aml_libs/pull/1
15 ---
16 amadec/audio-dec.h | 1 +
17 amavutils/include/Amvideoutils.h | 2 ++
18 2 files changed, 3 insertions(+)
20 diff --git a/amadec/audio-dec.h b/amadec/audio-dec.h
21 index 4325fe4..ac0f36b 100644
22 --- a/amadec/audio-dec.h
23 +++ b/amadec/audio-dec.h
24 @@ -12,6 +12,7 @@
25 #define AUDIO_DEC_H
27 #include<pthread.h>
28 +#include <stdint.h>
30 #include <audio-out.h>
31 #include <audiodsp.h>
32 diff --git a/amavutils/include/Amvideoutils.h b/amavutils/include/Amvideoutils.h
33 index 6f978e4..94f10a6 100644
34 --- a/amavutils/include/Amvideoutils.h
35 +++ b/amavutils/include/Amvideoutils.h
36 @@ -5,6 +5,8 @@
37 extern "C" {
38 #endif
40 +#include <stdint.h>
42 #define HDMI_HDCP_PASS (1)
43 #define HDMI_HDCP_FAILED (0)
44 #define HDMI_NOCONNECT (-1)
45 --
46 2.7.4