[core] STAILQ_* -> SIMPLEQ_* on OpenBSD
(thx brad)
@@ -221,6 +221,18 @@ lshpack_dec_set_max_capacity (struct lshpack_dec *, unsigned);
#include <sys/queue.h>
+#ifdef __OpenBSD__
+#define STAILQ_HEAD SIMPLEQ_HEAD
+#define STAILQ_ENTRY SIMPLEQ_ENTRY
+#define STAILQ_INIT SIMPLEQ_INIT
+#define STAILQ_INSERT_TAIL SIMPLEQ_INSERT_TAIL
+#define STAILQ_EMPTY SIMPLEQ_EMPTY
+#define STAILQ_FIRST SIMPLEQ_FIRST
+#define STAILQ_NEXT SIMPLEQ_NEXT
+#define STAILQ_REMOVE_HEAD SIMPLEQ_REMOVE_HEAD
+#define STAILQ_FOREACH SIMPLEQ_FOREACH
+#endif
+
struct lshpack_enc_table_entry;
STAILQ_HEAD(lshpack_enc_head, lshpack_enc_table_entry);
