gcc10.patch 717 B

123456789101112131415161718192021222324252627
  1. From 399e0f47008b487df3505476c959b4f42d8bc1b1 Mon Sep 17 00:00:00 2001
  2. From: Louis Sautier <sautier.louis@gmail.com>
  3. Date: Sat, 9 May 2020 14:31:52 +0200
  4. Subject: [PATCH] Fix build with GCC 10 by adding missing include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes the following error:
  9. ./mpdpp.h:438:15: error: ‘runtime_error’ is not a member of ‘std’
  10. ---
  11. src/mpdpp.h | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/mpdpp.h b/src/mpdpp.h
  14. index a2bb79eb..abd3666c 100644
  15. --- a/src/mpdpp.h
  16. +++ b/src/mpdpp.h
  17. @@ -25,6 +25,7 @@
  18. #include <exception>
  19. #include <random>
  20. #include <set>
  21. +#include <stdexcept>
  22. #include <vector>
  23. #include <mpd/client.h>