From 5396667ad5b6700fd713d4371674f56e8e90a0e0 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Fri, 3 May 2024 15:44:26 +0000 Subject: [PATCH] Fix build on FreeBSD --- common/filepath.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/filepath.cc b/common/filepath.cc index 89853448f1..f07b0b6e76 100644 --- a/common/filepath.cc +++ b/common/filepath.cc @@ -7,6 +7,10 @@ # include #endif +#ifdef __FreeBSD__ +# include +#endif + namespace mold { std::string get_realpath(std::string_view path) {