summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-29 12:52:39 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-29 12:52:39 +0100
commitfdcc9afb71ea88fe63bbed8bad0d5bae607bfb73 (patch)
tree949c3218d3a5034d6a6a7a6796346909d10f2c6d /src/os_unix.c
parente081e21f760bffc24ca98d5f9bbdb5f02e6aea79 (diff)
downloadvim-fdcc9afb71ea88fe63bbed8bad0d5bae607bfb73.zip
patch 7.4.1460
Problem: Syntax error in rarily used code. Solution: Fix the mch_rename() declaration. (Ken Takata)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 360259a67..53d32f709 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6454,14 +6454,14 @@ have_dollars(int num, char_u **file)
}
#endif /* ifndef __EMX__ */
-#ifndef HAVE_RENAME
+#if !defined(HAVE_RENAME) || defined(PROTO)
/*
* Scaled-down version of rename(), which is missing in Xenix.
* This version can only move regular files and will fail if the
* destination exists.
*/
int
-mch_rename(const char *src, *dest)
+mch_rename(const char *src, const char *dest)
{
struct stat st;