Skip to content

Commit a068aa3

Browse files
arichardsonresistor
authored andcommitted
[libunwind] Fix baremetal build
The header link.h might not exist for baremetal targets. Only include it when we actually have the c18n support.
1 parent 4e1d2bd commit a068aa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libunwind/src/CompartmentInfo.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
#ifndef __COMPARTMENT_INFO_HPP__
1414
#define __COMPARTMENT_INFO_HPP__
1515

16+
#ifdef _LIBUNWIND_HAS_CHERI_LIB_C18N
1617
#include <link.h>
18+
#endif
1719

1820
namespace libunwind {
1921

0 commit comments

Comments
 (0)