From 676799f23d935b64873ccf5b1bf9b475cb392ea3 Mon Sep 17 00:00:00 2001 From: Christopher Wiley Date: Wed, 30 Dec 2015 12:24:40 -0800 Subject: Fix compiler warnings on Windows in CopyFile.c direct.h declares _mkdir() on Windows. Prevent future compiler warnings with -Wall and -Werror. Bug: 26355209 Test: `mmma -j30 build/libs/host` for aosp_arm64-eng is successful. Change-Id: I6d6e4edca98bef57d62829e9d1ef4e2a96cdad3d --- libs/host/CopyFile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/host/CopyFile.c') diff --git a/libs/host/CopyFile.c b/libs/host/CopyFile.c index 1d9b6bd8e8..d785dca83a 100644 --- a/libs/host/CopyFile.c +++ b/libs/host/CopyFile.c @@ -25,6 +25,7 @@ #include #if defined(_WIN32) +#include /* For _mkdir() */ # define mkdir(path,mode) _mkdir(path) # define S_ISLNK(s) 0 # define lstat stat -- cgit v1.2.3-59-g8ed1b