Closed jack9603301 closed 1 year ago
It looks like you're a Gentoo user.
This fails because Gentoo tried to fix the build on musl by removing sys/queue.h in favour of the system-wide version. The bundled queue.h doesn't work on musl because it depends on sys/cdefs.h, which musl doesn't have. However, it also includes LIST_FOREACH_SAFE
, which glibc doesn't have. It looks like this header came from FreeBSD?
musl doesn't actually include queue.h at all, so we borrow glibc's version. I suggest you do the same (it is BSD-licensed) and put LIST_FOREACH_SAFE
in a separate header. I have effectively done this on Gentoo with success.
@chewi Can you tell me the specific operation or example?
Sorry, I was not clear. I have patched a fix into Gentoo, so you should not have any further trouble. The other information was for @any1.
sys/cdefs.h
isn't actually required, so I removed it.
Thanks! That should do the trick.
This is a closed issue, I will close it
Grammatical errors