mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[httpd] Fix for musl libc not having sys/queue.c (closes #1726)
This commit is contained in:
parent
68b7ccf4d2
commit
c293f72846
@ -23,7 +23,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/queue.h> // TAILQ_FOREACH
|
|
||||||
#include <sys/socket.h> // listen()
|
#include <sys/socket.h> // listen()
|
||||||
|
|
||||||
#include <event2/http.h>
|
#include <event2/http.h>
|
||||||
@ -105,7 +104,8 @@ httpd_query_iterate(httpd_query *query, httpd_query_iteratecb cb, void *arg)
|
|||||||
{
|
{
|
||||||
struct evkeyval *param;
|
struct evkeyval *param;
|
||||||
|
|
||||||
TAILQ_FOREACH(param, query, next)
|
// musl libc doesn't have sys/queue.h so don't use TAILQ_FOREACH
|
||||||
|
for (param = query->tqh_first; param; param = param->next.tqe_next)
|
||||||
{
|
{
|
||||||
cb(param->key, param->value, arg);
|
cb(param->key, param->value, arg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user