19 Nov
2021
19 Nov
'21
4:43 a.m.
Damjan Jovanovic <damjan.jov(a)gmail.com> writes:
Try 3 uses libprocstat in a new file, procstat.c (just like Solaris's procfs.c), which allows greater control over the included headers, so the duplicate definition of 'struct thread' can be avoided.
The usual way to handle that sort of thing is to #define/#undef the conflicting symbol around the system header. Something like: #define thread __unix_thread #include <sys/proc.h> #undef thread -- Alexandre Julliard julliard(a)winehq.org