Skip to content

Commit 340bfcd

Browse files
authored
Merge pull request #73534 from hyp/eng/fix-readlink
stdlib: fix android build
2 parents 28d7b20 + 94b1348 commit 340bfcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/runtime/Paths.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
#include <psapi.h>
5050
#endif
5151

52+
#ifdef __linux__
53+
// Needed for 'readlink'.
54+
#include <unistd.h>
55+
#endif
56+
5257
#include <cerrno>
5358
#include <cstdlib>
5459
#include <cstring>

0 commit comments

Comments
 (0)