diff options
Diffstat (limited to 'contrib/less/lsystem.c')
-rw-r--r-- | contrib/less/lsystem.c | 8 |
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(). |