Skip to content

Commit 94b1348

Browse files
committed
stdlib: fix android build
the readlink addition in f4bf278 was introduced without a corresponding include.
1 parent b376408 commit 94b1348

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)