aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index b879bfbae..57573bf60 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -372,3 +372,12 @@ char *realpath(const char *path, char *resolved_path)
372 /* FIXME: need normalization */ 372 /* FIXME: need normalization */
373 return strcpy(resolved_path, path); 373 return strcpy(resolved_path, path);
374} 374}
375
376const char *get_busybox_exec_path(void)
377{
378 static char path[PATH_MAX] = "";
379
380 if (!*path)
381 GetModuleFileName(NULL, path, PATH_MAX);
382 return path;
383}