[core] STAILQ_* -> SIMPLEQ_* on OpenBSD

(thx brad)
This commit is contained in:
Glenn Strauss 2020-10-26 10:11:00 -04:00
parent 008533e355
commit 1fad70f4f7
1 changed files with 12 additions and 0 deletions

View File

@ -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);