diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-26 11:15:21 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:33 -0400 |
commit | 652d1cb5f4a97fc99438c6b35e02df4fae3a55e4 (patch) | |
tree | 94729a58985ea302ba13f8bd562b9472da35fed9 /src/ls-hpack | |
parent | 4d04833fa8813cf2e1272d94524da774aa902f6c (diff) | |
download | lighttpd-git-652d1cb5f4a97fc99438c6b35e02df4fae3a55e4.tar.gz |
[core] _WIN32 port compatibility headers
sys/queue.h
LICENSE: BSD 3-clause
(not _WIN32 specific)
Diffstat (limited to 'src/ls-hpack')
-rw-r--r-- | src/ls-hpack/lshpack.c | 2 | ||||
-rw-r--r-- | src/ls-hpack/lshpack.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ls-hpack/lshpack.c b/src/ls-hpack/lshpack.c index 5091a147..95d344f6 100644 --- a/src/ls-hpack/lshpack.c +++ b/src/ls-hpack/lshpack.c @@ -37,7 +37,9 @@ SOFTWARE. #include <stdint.h> #include <stdlib.h> #include <string.h> +#ifndef _WIN32 /*(<sys/queue.h> included in "lshpack.h" immediately below)*/ #include <sys/queue.h> +#endif #include "lshpack.h" #if LS_HPACK_EMIT_TEST_CODE diff --git a/src/ls-hpack/lshpack.h b/src/ls-hpack/lshpack.h index 32492efe..da73b063 100644 --- a/src/ls-hpack/lshpack.h +++ b/src/ls-hpack/lshpack.h @@ -219,7 +219,11 @@ lshpack_dec_set_max_capacity (struct lshpack_dec *, unsigned); * These structures are not very complicated. */ +#ifdef _WIN32 +#include "../compat/_WIN32/sys/queue.h" +#else #include <sys/queue.h> +#endif #ifdef __OpenBSD__ #define STAILQ_HEAD SIMPLEQ_HEAD |