Skip to content

Commit

Permalink
[httpd] Fix for musl libc not having sys/queue.c (closes #1726)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Mar 3, 2024
1 parent 68b7ccf commit c293f72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/httpd_libevhttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/queue.h> // TAILQ_FOREACH
#include <sys/socket.h> // listen()

#include <event2/http.h>
Expand Down Expand Up @@ -105,7 +104,8 @@ httpd_query_iterate(httpd_query *query, httpd_query_iteratecb cb, void *arg)
{
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);
}
Expand Down

0 comments on commit c293f72

Please sign in to comment.