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

Francois Gouget fgouget at codeweavers.com
Sun Sep 1 21:16:53 CDT 2019


It also has /proc/curproc/exe but there does not seem to be a reason to
prefer it over /proc/self/exe.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 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 3c9110b3b80..ab5e3816dc5 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";
-- 
2.20.1




More information about the wine-devel mailing list