From 37cd287e4e8a7b9c2f4bd21f1e07fff08daa3549 Mon Sep 17 00:00:00 2001 From: amol Date: Mon, 23 Aug 2021 17:25:29 -0700 Subject: [PATCH] fix some stuff broken for windows --- sh.h | 1 + win32/ntport.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sh.h b/sh.h index 2b33cec0..87238d33 100644 --- a/sh.h +++ b/sh.h @@ -1029,6 +1029,7 @@ EXTERN struct varent { * The following are for interfacing redo substitution in * aliases to the lexical routines. */ +#define HIST_PURGE -500000 EXTERN struct wordent *alhistp IZERO;/* Argument list (first) */ EXTERN struct wordent *alhistt IZERO;/* Node after last in arg list */ EXTERN Char **alvec IZERO, diff --git a/win32/ntport.h b/win32/ntport.h index c36c1ae1..e1bac264 100644 --- a/win32/ntport.h +++ b/win32/ntport.h @@ -157,6 +157,9 @@ pretty */ #define setpgrp(a,b) (-1) #define tcsetattr(a,b,c) 0 +#define strcasecmp(a,b) stricmp((a),(b)) +#define readlink(a,b,c) -1 + #define inline __inline #undef stdin