Minimize Cygwin64 changes & use __unix__ instead of CYGWIN.

This commit is contained in:
Renaud 2013-09-14 21:31:42 +08:00
parent 15012326db
commit e83feafda1
4 changed files with 6 additions and 8 deletions

View File

@ -56,8 +56,6 @@ static int displaying = TRUE;
#include <sys/ioctl.h>
/* for window size changes */
int chg_width, chg_height;
static int newscreensize(int h, int w);
#endif
static int reframe(struct window *wp);
@ -73,6 +71,7 @@ static void modeline(struct window *wp);
static void mlputi(int i, int r);
static void mlputli(long l, int r);
static void mlputf(int s);
static int newscreensize(int h, int w);
#if RAINBOW
static void putline(int row, int col, char *buf);

View File

@ -54,7 +54,7 @@
#undef BSD
#endif
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined(__hpux) || defined( CYGWIN)
#if defined(SYSV) || defined(u3b2) || defined(_AIX) || (defined(i386) && defined(unix)) || defined(__hpux) || defined( __unix__)
#define USG 1 /* System V UNIX */
#else
#define USG 0

View File

@ -75,15 +75,15 @@ boolean fexist( const char *fname)
*/
char *flook( const char *fname, int hflag)
{
char *home; /* path to home directory */
char *path; /* environmental PATH variable */
char *sp; /* pointer into path spec */
int i; /* index */
static char fspec[NSTRING]; /* full path spec to search */
#if ENVFUNC
char *path; /* environmental PATH variable */
if (hflag) {
char *home; /* path to home directory */
home = getenv("HOME");
if (home != NULL) {
/* build home dir file spec */
@ -108,7 +108,6 @@ char *flook( const char *fname, int hflag)
path = getenv("PATH");
if (path != NULL)
while (*path) {
char *sp; /* pointer into path spec */
/* build next possible file spec */
sp = fspec;

View File

@ -345,9 +345,9 @@ int getcmd(void)
#if VT220
proc_metac:
#endif
if (c == 128+27) /* CSI */
goto handle_CSI;
#endif
/* process META prefix */
if (c == (CONTROL | '[')) {
c = get1key();