mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -05:00
Minimize Cygwin64 changes & use __unix__ instead of CYGWIN.
This commit is contained in:
parent
15012326db
commit
e83feafda1
@ -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);
|
||||
|
@ -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
|
||||
|
7
flook.c
7
flook.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user