Skip to content

Commit

Permalink
Merge pull request swiftlang#73534 from hyp/eng/fix-readlink
Browse files Browse the repository at this point in the history
stdlib: fix android build
  • Loading branch information
hyp committed Jun 27, 2024
1 parent 9624428 commit f038af7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/public/runtime/Paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
#include <psapi.h>
#endif

#ifdef __linux__
// Needed for 'readlink'.
#include <unistd.h>
#endif

#include <cerrno>
#include <cstdlib>
#include <cstring>
Expand Down

0 comments on commit f038af7

Please sign in to comment.