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:
parent
443805b10a
commit
208b824ecd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue