diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-08-16 20:30:25 +0000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-09-12 13:07:38 -0400 |
commit | 5c82ea8f9f9f3ef043d4f206ded223a89a3bd360 (patch) | |
tree | 3671e6ee7f747f2ae3d238b83839bf2941567b39 /src | |
parent | 57836f2b71131decfc1da80b15a2c84f48de4336 (diff) | |
download | rneovim-5c82ea8f9f9f3ef043d4f206ded223a89a3bd360.tar.gz rneovim-5c82ea8f9f9f3ef043d4f206ded223a89a3bd360.tar.bz2 rneovim-5c82ea8f9f9f3ef043d4f206ded223a89a3bd360.zip |
remove HAVE_DUP #1072
Vim defines this for Windows, so there's no Neovim-supported system for
which this would not be defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 2 | ||||
-rw-r--r-- | src/nvim/os/os_defs.h | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index acdef5cd12..302f6b30fb 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1755,13 +1755,11 @@ failed: #endif xfree(buffer); -#ifdef HAVE_DUP if (read_stdin) { /* Use stderr for stdin, makes shell commands work. */ close(0); ignored = dup(2); } -#endif if (tmpname != NULL) { os_remove((char *)tmpname); // delete converted file diff --git a/src/nvim/os/os_defs.h b/src/nvim/os/os_defs.h index f0f74857e0..3d56115401 100644 --- a/src/nvim/os/os_defs.h +++ b/src/nvim/os/os_defs.h @@ -103,9 +103,6 @@ # include <strings.h> #endif -// For dup(3). -#define HAVE_DUP - /// Function to convert -errno error to char * error description /// /// -errno errors are returned by a number of os functions. |