oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: bb1108a6464f947d991340bf2ae0598438bb13cd
parent: 2a04e92438c3d7e03ae6d36f787c8fa9f056bb4f
author: Brian Callahan <dodonpachi-github@mailinator.com>
date:   Sun, 1 Apr 2018 21:58:01 -0400
Fix cygwin build
MREADME.md1+
Mportable.h4++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -15,6 +15,7 @@ Supported systems
 * NetBSD
 * Mac OS X
 * Linux (glibc and musl)
+* Cygwin
 * Android (via Termux)
 
 Running on a system not listed here? Add it and send a pull request!
diff --git a/portable.h b/portable.h
@@ -43,13 +43,13 @@
 #endif /* !O_EXLOCK */
 
 #ifndef _PW_NAME_LEN
-#if defined(__linux__)
+#if defined(__linux__) || defined(__CYGWIN__)
 #define _PW_NAME_LEN	LOGIN_NAME_MAX
 #elif defined(__NetBSD__)
 #define _PW_NAME_LEN	MAXLOGNAME
 #else
 #define _PW_NAME_LEN	MAXLOGNAME - 1
-#endif /* __linux__ || __NetBSD__ */
+#endif /* __linux__ || __CYGWIN__ || __NetBSD__ */
 #endif /* !_PW_NAME_LEN */
 
 #ifndef RLIMIT_RSS