From: Gerald Pfeifer gerald@pfeifer.com
When .so module initialization was moved from ntdll to winecrt0 with commit bef09697 we lost a number of include files. FreeBSD-specific code in dll_soinit.c uses offsetof(), so include <stddef.h>. --- dlls/winecrt0/dll_soinit.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/winecrt0/dll_soinit.c b/dlls/winecrt0/dll_soinit.c index e0ed9a1be1e..9e626cfa997 100644 --- a/dlls/winecrt0/dll_soinit.c +++ b/dlls/winecrt0/dll_soinit.c @@ -38,6 +38,9 @@ #ifdef HAVE_LINK_H # include <link.h> #endif +#ifdef __FreeBSD__ +#include <stddef.h> +#endif #include "basetsd.h"