From 5c82ea8f9f9f3ef043d4f206ded223a89a3bd360 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 16 Aug 2014 20:30:25 +0000 Subject: remove HAVE_DUP #1072 Vim defines this for Windows, so there's no Neovim-supported system for which this would not be defined. --- src/nvim/fileio.c | 2 -- src/nvim/os/os_defs.h | 3 --- 2 files changed, 5 deletions(-) (limited to 'src') 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 #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. -- cgit