Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 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 | |
| 6 | Boost 1.78.0 fails to build on musl-based systems because musl does |
| 7 | not include sys/stat.h by default. |
| 8 | |
| 9 | Fixes #161 ("Boost compiler error") |
| 10 | Upstream-Status: Submitted [https://github.com/boostorg/interprocess/pull/162] |
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 12 | --- |
| 13 | include/boost/interprocess/permissions.hpp | 4 ++++ |
| 14 | 1 file changed, 4 insertions(+) |
| 15 | |
| 16 | diff --git a/boost/interprocess/permissions.hpp b/boost/interprocess/permissions.hpp |
| 17 | index ab55411e..0b21a685 100644 |
| 18 | --- a/boost/interprocess/permissions.hpp |
| 19 | +++ b/boost/interprocess/permissions.hpp |
| 20 | @@ -29,6 +29,10 @@ |
| 21 | |
| 22 | #include <boost/interprocess/detail/win32_api.hpp> |
| 23 | |
| 24 | +#else |
| 25 | + |
| 26 | +#include <sys/stat.h> |
| 27 | + |
| 28 | #endif |
| 29 | |
| 30 | #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED |