[PATCH v3] server: implement vm counters on FreeBSD

Alexandre Julliard julliard at winehq.org
Fri Nov 19 04:43:10 CST 2021


Damjan Jovanovic <damjan.jov at 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 at winehq.org



More information about the wine-devel mailing list