From 896292a7fef818c640f77b8c18fbb9d3e3034cb0 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 2 Sep 2019 04:16:53 +0200 Subject: [PATCH] libwine: Like Linux, NetBSD has /proc/self/exe. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- 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 bdf065fd629..2a3314cbfda 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -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";