summaryrefslogtreecommitdiff
path: root/contrib/less/lsystem.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-06-29 18:41:40 +0000
committerXin LI <delphij@FreeBSD.org>2019-06-29 18:41:40 +0000
commitb7780dbe98fc88da65024e697529ea7883064275 (patch)
treebd2291ea12f9519bfe4c9f79ef9ec6f46f0f4348 /contrib/less/lsystem.c
parent89ebdc94547ec4c790b6cbaa9c48b9332e725994 (diff)
parent6aa86b45318b321ba7e9cc3c221ab9062ddac4a0 (diff)
Notes
Diffstat (limited to 'contrib/less/lsystem.c')
-rw-r--r--contrib/less/lsystem.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/less/lsystem.c b/contrib/less/lsystem.c
index 10911ebe15d4..d4f1e7731379 100644
--- a/contrib/less/lsystem.c
+++ b/contrib/less/lsystem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2017 Mark Nudelman
+ * Copyright (C) 1984-2019 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -19,6 +19,10 @@
#if MSDOS_COMPILER
#include <dos.h>
+#if MSDOS_COMPILER==WIN32C && defined(MINGW)
+#include <direct.h>
+#define setdisk(n) _chdrive((n)+1)
+#else
#ifdef _MSC_VER
#include <direct.h>
#define setdisk(n) _chdrive((n)+1)
@@ -26,6 +30,7 @@
#include <dir.h>
#endif
#endif
+#endif
extern int screen_trashed;
extern IFILE curr_ifile;
@@ -291,7 +296,6 @@ pipe_data(cmd, spos, epos)
{
FILE *f;
int c;
- extern FILE *popen();
/*
* This is structured much like lsystem().