0001-reproc-Try-to-fix-gcc-13-build.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 0b23d88894ccedde04537fa23ea55cb2f8365342 Mon Sep 17 00:00:00 2001
  2. From: Daan De Meyer <daan.j.demeyer@gmail.com>
  3. Date: Sat, 18 Mar 2023 19:38:19 +0100
  4. Subject: [PATCH] reproc++: Try to fix gcc 13 build
  5. Upstream: https://github.com/DaanDeMeyer/reproc/commit/0b23d88894ccedde04537fa23ea55cb2f8365342
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. ---
  8. reproc++/include/reproc++/reproc.hpp | 8 ++++----
  9. 1 file changed, 4 insertions(+), 4 deletions(-)
  10. diff --git a/reproc++/include/reproc++/reproc.hpp b/reproc++/include/reproc++/reproc.hpp
  11. index ab6f1394..e883ecec 100644
  12. --- a/reproc++/include/reproc++/reproc.hpp
  13. +++ b/reproc++/include/reproc++/reproc.hpp
  14. @@ -88,7 +88,7 @@ struct redirect {
  15. struct options {
  16. struct {
  17. - env::type behavior;
  18. + enum env::type behavior;
  19. /*! Implicitly converts from any STL container of string pairs to the
  20. environment format expected by `reproc_start`. */
  21. class env extra;
  22. @@ -97,9 +97,9 @@ struct options {
  23. const char *working_directory = nullptr;
  24. struct {
  25. - redirect in;
  26. - redirect out;
  27. - redirect err;
  28. + struct redirect in;
  29. + struct redirect out;
  30. + struct redirect err;
  31. bool parent;
  32. bool discard;
  33. FILE *file;