[PATCH 0/1] MR1770: winecrt0: Include <stddef.h> from dll_soinit.c
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>. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1770
From: Gerald Pfeifer <gerald(a)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" -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1770
This merge request was closed by Gerald Pfeifer. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1770
Alexandre addressed the issue differently, so we can drop this merge request: commit f69c11117ee56cb664bd0ade1392c5553ff2af30 Author: Alexandre Julliard <julliard(a)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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1770#note_19551
participants (2)
-
Gerald Pfeifer -
Gerald Pfeifer (@gerald)