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>.
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"
Alexandre addressed the issue differently, so we can drop this merge request:
commit f69c11117ee56cb664bd0ade1392c5553ff2af30 Author: Alexandre Julliard julliard@winehq.org Date: Mon Dec 12 12:30:44 2022 +0100
winecrt0: Include windef.h to get definitions needed on FreeBSD.
Reported by Gerald Pfeifer.
This merge request was closed by Gerald Pfeifer.