0001-fix-compiler-errors-with-gcc-10.patch 1013 B

1234567891011121314151617181920212223242526272829303132333435
  1. From aa54634ce7cbbfc844de945e73a9f34cdcb9bb12 Mon Sep 17 00:00:00 2001
  2. From: Peter Trompeter <christoph@zen.fritz.box>
  3. Date: Fri, 15 May 2020 15:20:47 +0200
  4. Subject: [PATCH] fix compiler errors with gcc 10
  5. [Retrieved from:
  6. https://github.com/tomba/kmsxx/commit/aa54634ce7cbbfc844de945e73a9f34cdcb9bb12]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. ---
  9. kms++/inc/kms++/pixelformats.h | 1 +
  10. kms++util/src/opts.cpp | 1 +
  11. 2 files changed, 2 insertions(+)
  12. diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h
  13. index 784717d..4e73d5d 100644
  14. --- a/kms++/inc/kms++/pixelformats.h
  15. +++ b/kms++/inc/kms++/pixelformats.h
  16. @@ -2,6 +2,7 @@
  17. #include <cstdint>
  18. #include <string>
  19. +#include <stdexcept>
  20. namespace kms
  21. {
  22. diff --git a/kms++util/src/opts.cpp b/kms++util/src/opts.cpp
  23. index afef452..5a14b84 100644
  24. --- a/kms++util/src/opts.cpp
  25. +++ b/kms++util/src/opts.cpp
  26. @@ -1,4 +1,5 @@
  27. #include <algorithm>
  28. +#include <stdexcept>
  29. #include <unistd.h>
  30. #include <getopt.h>