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

Alexandre Julliard julliard at winehq.org
Tue Sep 3 16:34:07 CDT 2019


Module: wine
Branch: master
Commit: 896292a7fef818c640f77b8c18fbb9d3e3034cb0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=896292a7fef818c640f77b8c18fbb9d3e3034cb0

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Sep  2 04:16:53 2019 +0200

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

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 bdf065f..2a3314c 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";




More information about the wine-cvs mailing list