any1 / aml

Another Main Loop
ISC License
17 stars 7 forks source link

Grammatical errors #11

Closed jack9603301 closed 1 year ago

jack9603301 commented 1 year ago

Grammatical errors

图片

chewi commented 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.

jack9603301 commented 1 year ago

@chewi Can you tell me the specific operation or example?

chewi commented 1 year ago

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.

any1 commented 1 year ago

sys/cdefs.h isn't actually required, so I removed it.

chewi commented 1 year ago

Thanks! That should do the trick.

jack9603301 commented 1 year ago

This is a closed issue, I will close it