Revision 24b26f8bd6a49c855eec417a6585d44c9458e3ec changed FreeBSD (and DragonFly) not to use /proc any longer. Hence we also do not need the exe_link variable on those two platforms, either. Avoid declaring it there.
(Spotted by GCC 12.)
Signed-off-by: Gerald Pfeifer gerald@pfeifer.com --- libs/wine/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/wine/config.c b/libs/wine/config.c index 23c76fda128..69a783967df 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -60,7 +60,7 @@ static void fatal_error( const char *err, ... ) __attribute__((noreturn,format(
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) static const char exe_link[] = "/proc/self/exe"; -#else +#elseif ! defined (__FreeBSD__) && ! defined(__DragonFly__) static const char exe_link[] = ""; #endif
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=106817
Your paranoid android.
=== debian11 (build log) ===
../wine/libs/wine/config.c:63:2: error: invalid preprocessing directive #elseif; did you mean #else? ../wine/libs/wine/config.c:64:19: error: redefinition of ‘exe_link’ Task: The win32 Wine build failed
=== debian11 (build log) ===
../wine/libs/wine/config.c:63:2: error: invalid preprocessing directive #elseif; did you mean #else? ../wine/libs/wine/config.c:64:19: error: redefinition of ‘exe_link’ Task: The wow64 Wine build failed