mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
remove HAVE_DUP #1072
Vim defines this for Windows, so there's no Neovim-supported system for which this would not be defined.
This commit is contained in:
parent
57836f2b71
commit
5c82ea8f9f
@ -1755,13 +1755,11 @@ failed:
|
|||||||
#endif
|
#endif
|
||||||
xfree(buffer);
|
xfree(buffer);
|
||||||
|
|
||||||
#ifdef HAVE_DUP
|
|
||||||
if (read_stdin) {
|
if (read_stdin) {
|
||||||
/* Use stderr for stdin, makes shell commands work. */
|
/* Use stderr for stdin, makes shell commands work. */
|
||||||
close(0);
|
close(0);
|
||||||
ignored = dup(2);
|
ignored = dup(2);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (tmpname != NULL) {
|
if (tmpname != NULL) {
|
||||||
os_remove((char *)tmpname); // delete converted file
|
os_remove((char *)tmpname); // delete converted file
|
||||||
|
@ -103,9 +103,6 @@
|
|||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For dup(3).
|
|
||||||
#define HAVE_DUP
|
|
||||||
|
|
||||||
/// Function to convert -errno error to char * error description
|
/// Function to convert -errno error to char * error description
|
||||||
///
|
///
|
||||||
/// -errno errors are returned by a number of os functions.
|
/// -errno errors are returned by a number of os functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user