Closed neheb closed 2 years ago
I suggest importing the latest queue.h from OpenBSD and using that instead, it carries the _SAFE macros as well which are preferable when traversing lists while deleting nodes. No need to add another external dependency (libbsd) to this project for this.
@neheb On what host is this breaking?
Works fine for me
OpenWrt with the sys/queue.h header removed. The goal is to reduce OpenWrt's diff compared to upstream. Removing sys/queue.h seems to be too hard as projects seem unwilling to use libbsd.
That is gonna be hard as nobody wants additional dependency
musl libc does not come with sys/queue.h by default, breaking compilation.
Potential fallback is libbsd, preferably the overlay mode.