On 31.12.24 12:07, Antonio Borneo wrote:
Mistake in the reply above, src/helper/list.h is now a copy from BSD.
The Linux code has been dropped to use a more permissive license.
Then, the file <sys/queue.h> is part of GNU libc, it's not an abuse
from MacOS environment.
https://sourceware.org/git/?p=glibc.git;a=blob;f=misc/sys/queue.h
Also openssl met this same issue recently
https://github.com/openssl/openssl/issues/25516
It is due to sys/queue.h being now included by some other system
include file. And this is probably MacOS specific.
Two proposals, feedback welcome:
1) use the same fix of openssl, that is renaming the OpenOCD macros
and keeping the file src/helper/list.h
2) drop src/helper/list.h and convert OpenOCD code to use sys/queue.h
from GNU libc
I think #1 is cleaner.
#2 would mean that we have to support two implementations - our own and
the one from glibc, or at least keep out copy in sync.
Now I don't like the way the library pollutes the name space with its
queue.h - but getting that fixed may be a big task and take long.
cu
Michael