libwine: Improve bin directory detection on kFreeBSD and DragonFly BSD

André Hentschel nerv at dawncrow.de
Mon Jun 4 15:14:14 CDT 2012


kFreeBSD really behaves like Linux here, SunOS as tested with Nexenta seems not to have self/curproc or similar
---
 libs/wine/config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/wine/config.c b/libs/wine/config.c
index 031850b..886b72e 100644
--- a/libs/wine/config.c
+++ b/libs/wine/config.c
@@ -53,9 +53,9 @@ static void fatal_error( const char *err, ... )  __attribute__((noreturn,format(
 static void fatal_perror( const char *err, ... )  __attribute__((noreturn,format(printf,1,2)));
 #endif
 
-#ifdef __linux__
+#ifdef __linux__ || defined(__FreeBSD_kernel__ )
 #define EXE_LINK "/proc/self/exe"
-#elif defined (__FreeBSD__)
+#elif defined (__FreeBSD__) || defined(__DragonFly__)
 #define EXE_LINK "/proc/curproc/file"
 #endif
 
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list