diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-04-11 14:15:24 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-04-21 10:14:07 +0200 |
commit | 770a0ac2df8b474fb0013ce662a9ccac7390b3c7 (patch) | |
tree | ab3daed33e167e1b58f1b5f3282b871973c71482 /src/nvim/fileio.c | |
parent | 9678fe4cfba9f7a9dacbd6d5a56c58241e98aa60 (diff) | |
download | rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.tar.gz rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.tar.bz2 rneovim-770a0ac2df8b474fb0013ce662a9ccac7390b3c7.zip |
Make neovim building even with libuv 1.18.0
(found for example on openSUSE/Leap 15.*)
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 88e9390c65..8da1c94219 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -62,6 +62,11 @@ #define BUFSIZE 8192 /* size of normal write buffer */ #define SMBUFSIZE 256 /* size of emergency write buffer */ +// For compatibility with libuv < 1.20.0 (tested on 1.18.0) +#ifndef UV_FS_COPYFILE_FICLONE +#define UV_FS_COPYFILE_FICLONE 0 +#endif + // // The autocommands are stored in a list for each event. // Autocommands for the same pattern, that are consecutive, are joined |