From: dohnuts Date: Fri, 3 Mar 2017 18:36:34 +0000 (-0500) Subject: Shims to compile under OpenBSD X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=1d7d21f898e8da8cfb4148b44ed90c65cab530fe;p=ttyd.git Shims to compile under OpenBSD STAILQ_HEAD is implemented as SIMPLEQ_HEAD pty.h is like in apple , util.h --- diff --git a/src/server.h b/src/server.h index 257ca2f..d547647 100644 --- a/src/server.h +++ b/src/server.h @@ -22,7 +22,18 @@ #include #include -#ifdef __APPLE__ +#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_REMOVE_HEAD SIMPLEQ_REMOVE_HEAD +#define STAILQ_FOREACH SIMPLEQ_FOREACH +#endif + +#if defined(__OpenBSD__) || defined(__APPLE__) #include #elif defined(__FreeBSD__) #include