libwine: Only define exe_link when needed.

Revision 24b26f8bd6 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.

(This avoids a compiler warning with GCC 12.)
This commit is contained in:
Gerald Pfeifer 2022-12-17 02:21:13 +01:00 committed by Alexandre Julliard
parent 443805b10a
commit 208b824ecd

View file

@ -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
#elif ! defined (__FreeBSD__) && ! defined(__DragonFly__)
static const char exe_link[] = "";
#endif