Skip to content

Commit

Permalink
Merge pull request #1251 from wahjava/fix-on-freebsd
Browse files Browse the repository at this point in the history
Fix build on FreeBSD
  • Loading branch information
rui314 committed May 4, 2024
2 parents f0f61cc + 5396667 commit a3480e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/filepath.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# include <mach-o/dyld.h>
#endif

#ifdef __FreeBSD__
# include <sys/sysctl.h>
#endif

namespace mold {

std::string get_realpath(std::string_view path) {
Expand Down

0 comments on commit a3480e8

Please sign in to comment.