Mercurial > vim
diff src/os_unix.c @ 8336:d44ff1525ff0 v7.4.1460
commit https://github.com/vim/vim/commit/fdcc9afb71ea88fe63bbed8bad0d5bae607bfb73
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 29 12:52:39 2016 +0100
patch 7.4.1460
Problem: Syntax error in rarily used code.
Solution: Fix the mch_rename() declaration. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 29 Feb 2016 13:00:04 +0100 |
parents | 74b15ed0a259 |
children | 45740f83b3ce |
line wrap: on
line diff
--- 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;