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: 0848bc4bf9b337fc9ef0929857011cefbc4ac0b4
parent: b2bab82b4baa99b974ff28f91cd7f671340fd2da
author: Tim Sedlmeyer <tim@sedlmeyer.org>
date:   Fri, 28 Sep 2018 23:17:26 -0400
Add includes and defines to portable.h for Solaris
Mportable.h8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/portable.h b/portable.h
@@ -26,9 +26,9 @@
 #include <mach/mach.h>
 #endif /* __APPLE__ */
 
-#ifdef _AIX
+#if defined(_AIX) || defined(__sun)
 #include <sys/file.h>
-#endif /* _AIX */
+#endif /* _AIX || __sun */
 
 #include <time.h>
 
@@ -51,9 +51,11 @@
 #define _PW_NAME_LEN	LOGIN_NAME_MAX
 #elif defined(__NetBSD__)
 #define _PW_NAME_LEN	MAXLOGNAME
+#elif defined(__sun)
+#define _PW_NAME_LEN	LOGNAME_MAX
 #else
 #define _PW_NAME_LEN	MAXLOGNAME - 1
-#endif /* __linux__ || __CYGWIN__ || _AIX || __NetBSD__ */
+#endif /* __linux__ || __CYGWIN__ || _AIX || __NetBSD__ || __sun */
 #endif /* !_PW_NAME_LEN */
 
 #ifndef RLIMIT_RSS