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: fc2a64c2f217619b94f81adf0361649fa07b2089
parent: 1f7680281f32e107f4dd326d82df4cee1c42d560
author: Brian Callahan <bcallah@openbsd.org>
date:   Wed, 25 Jul 2018 21:43:01 -0400
Let's always have macOS use the portability queue routines.
This was tested on Mac OS X 10.4 (PowerPC).
Memacs.c2+-
Mportable.h4++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/emacs.c b/emacs.c
@@ -14,7 +14,7 @@
 #include "config.h"
 #ifdef EMACS
 
-#ifndef __linux__
+#if !defined(__linux__) && !defined(__APPLE__)
 #include <sys/queue.h>
 #endif
 #include <sys/stat.h>
diff --git a/portable.h b/portable.h
@@ -233,7 +233,7 @@ typedef void (*sig_t) (int);
 
 /* The following should only be necessary on non-BSD systems.  */
 
-#if defined(__linux__) || defined(_AIX)
+#if defined(__linux__) || defined(_AIX) || defined(__APPLE__)
 
 /*	$OpenBSD: queue.h,v 1.38 2013/07/03 15:05:21 fgsch Exp $	*/
 /*	$NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $	*/
@@ -879,6 +879,6 @@ struct {								\
 	_Q_INVALIDATE((elm)->field.cqe_next);				\
 } while (0)
 
-#endif /* __linux__ || _AIX */
+#endif /* __linux__ || _AIX || __APPLE__ */
 
 #endif /* !_OKSH_PORTABLE_H_ */