libwine: Like Linux, NetBSD has /proc/self/exe.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-09-02 04:16:53 +02:00 committed by Alexandre Julliard
parent 728b6fc5e6
commit 896292a7fe
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static void fatal_error( const char *err, ... ) __attribute__((noreturn,format(
static void fatal_perror( const char *err, ... ) __attribute__((noreturn,format(printf,1,2)));
#endif
#if defined(__linux__) || defined(__FreeBSD_kernel__ )
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
static const char exe_link[] = "/proc/self/exe";
#elif defined (__FreeBSD__) || defined(__DragonFly__)
static const char exe_link[] = "/proc/curproc/file";