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:
parent
728b6fc5e6
commit
896292a7fe
|
@ -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)));
|
static void fatal_perror( const char *err, ... ) __attribute__((noreturn,format(printf,1,2)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__FreeBSD_kernel__ )
|
#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
|
||||||
static const char exe_link[] = "/proc/self/exe";
|
static const char exe_link[] = "/proc/self/exe";
|
||||||
#elif defined (__FreeBSD__) || defined(__DragonFly__)
|
#elif defined (__FreeBSD__) || defined(__DragonFly__)
|
||||||
static const char exe_link[] = "/proc/curproc/file";
|
static const char exe_link[] = "/proc/curproc/file";
|
||||||
|
|
Loading…
Reference in New Issue