0001-Fix-missing-sys-stat-h-include-on-musl-based-systems.patch 964 B

12345678910111213141516171819202122232425262728293031
  1. From de657e01635306085488290ea83de541ec393f8b Mon Sep 17 00:00:00 2001
  2. From: Leonardo Neumann <leonardo@neumann.dev.br>
  3. Date: Mon, 13 Dec 2021 01:07:20 -0300
  4. Subject: [PATCH] Fix missing sys/stat.h include on musl-based systems
  5. Boost 1.78.0 fails to build on musl-based systems because musl does
  6. not include sys/stat.h by default.
  7. Fixes #161 ("Boost compiler error")
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  9. [Upstream status: https://github.com/boostorg/interprocess/pull/162]
  10. ---
  11. include/boost/interprocess/permissions.hpp | 4 ++++
  12. 1 file changed, 4 insertions(+)
  13. diff --git a/boost/interprocess/permissions.hpp b/boost/interprocess/permissions.hpp
  14. index ab55411e..0b21a685 100644
  15. --- a/boost/interprocess/permissions.hpp
  16. +++ b/boost/interprocess/permissions.hpp
  17. @@ -29,6 +29,10 @@
  18. #include <boost/interprocess/detail/win32_api.hpp>
  19. +#else
  20. +
  21. +#include <sys/stat.h>
  22. +
  23. #endif
  24. #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED