blob: 867ec03ba672a5e5295b4c205a4ac9d576332ae8 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From de657e01635306085488290ea83de541ec393f8b Mon Sep 17 00:00:00 2001
2From: Leonardo Neumann <leonardo@neumann.dev.br>
3Date: Mon, 13 Dec 2021 01:07:20 -0300
4Subject: [PATCH] Fix missing sys/stat.h include on musl-based systems
5
6Boost 1.78.0 fails to build on musl-based systems because musl does
7not include sys/stat.h by default.
8
9Fixes #161 ("Boost compiler error")
10Upstream-Status: Submitted [https://github.com/boostorg/interprocess/pull/162]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 include/boost/interprocess/permissions.hpp | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/boost/interprocess/permissions.hpp b/boost/interprocess/permissions.hpp
17index 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