summaryrefslogtreecommitdiffstats
path: root/libc/bionic/getcwd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/getcwd.cpp')
-rw-r--r--libc/bionic/getcwd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/bionic/getcwd.cpp b/libc/bionic/getcwd.cpp
index 47c807f..a8bbcf3 100644
--- a/libc/bionic/getcwd.cpp
+++ b/libc/bionic/getcwd.cpp
@@ -26,8 +26,10 @@
* SUCH DAMAGE.
*/
-#include <unistd.h>
#include <errno.h>
+#include <malloc.h>
+#include <string.h>
+#include <unistd.h>
extern "C" int __getcwd(char* buf, size_t size);