From c5593b51dc98715f7f32a919301b5801ebf1a8ce Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 5 Nov 2018 16:03:19 -0500 Subject: warnings: fix code that emits compiler warnings PR-URL: https://github.com/libuv/libuv/pull/2066 Reviewed-By: Ben Noordhuis Reviewed-By: Refael Ackermann --- src/unix/fs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/unix/fs.c') diff --git a/src/unix/fs.c b/src/unix/fs.c index a2cfc3ae..d22c70f0 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -71,6 +71,10 @@ # include #endif +#if defined(_AIX) && _XOPEN_SOURCE <= 600 +extern char *mkdtemp(char *template); /* See issue #740 on AIX < 7 */ +#endif + #define INIT(subtype) \ do { \ if (req == NULL) \ @@ -723,7 +727,7 @@ static ssize_t uv__fs_utime(uv_fs_t* req) { atr.att_atimechg = 1; atr.att_mtime = req->mtime; atr.att_atime = req->atime; - return __lchattr(req->path, &atr, sizeof(atr)); + return __lchattr((char*) req->path, &atr, sizeof(atr)); #else errno = ENOSYS; return -1; -- cgit v1.2.3