0001-Include-stdint.h-where-needed.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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
  5. The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
  6. included when such types are used.
  7. Not including <stdint.h> might work by accident with some C libraries
  8. due to it being included by other headers, but it for example causes
  9. build failures with the musl C library.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. Upstream-status: https://github.com/mdrjr/c2_aml_libs/pull/1
  12. ---
  13. amadec/audio-dec.h | 1 +
  14. amavutils/include/Amvideoutils.h | 2 ++
  15. 2 files changed, 3 insertions(+)
  16. diff --git a/amadec/audio-dec.h b/amadec/audio-dec.h
  17. index 4325fe4..ac0f36b 100644
  18. --- a/amadec/audio-dec.h
  19. +++ b/amadec/audio-dec.h
  20. @@ -12,6 +12,7 @@
  21. #define AUDIO_DEC_H
  22. #include<pthread.h>
  23. +#include <stdint.h>
  24. #include <audio-out.h>
  25. #include <audiodsp.h>
  26. diff --git a/amavutils/include/Amvideoutils.h b/amavutils/include/Amvideoutils.h
  27. index 6f978e4..94f10a6 100644
  28. --- a/amavutils/include/Amvideoutils.h
  29. +++ b/amavutils/include/Amvideoutils.h
  30. @@ -5,6 +5,8 @@
  31. extern "C" {
  32. #endif
  33. +#include <stdint.h>
  34. +
  35. #define HDMI_HDCP_PASS (1)
  36. #define HDMI_HDCP_FAILED (0)
  37. #define HDMI_NOCONNECT (-1)
  38. --
  39. 2.7.4