From 492e7f5aa7d54488b371d58c65c6c769a4036a3d Mon Sep 17 00:00:00 2001
From: amol <amol.deshpande@outlook.com>
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 a50826b5..925ee7bf 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