diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 07:03:20 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 18:40:34 +1000 |
commit | 292c51299c94985316049c2b2ad7727e33f8faf1 (patch) | |
tree | 8d4801af40c6de39cf791b39acd935e09ff6d3b9 /include | |
parent | 4fc9774cb660ea99f90466c4253413447e23e2d0 (diff) | |
download | busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.tar.gz busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.tar.bz2 busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.zip |
win32: add get_busybox_exec_path(), which is bb_busybox_exec_path
This function will become bb_busybox_exec_path because there is no
fixed installation location on Windows.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 0933f5385..11d7f27d3 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1562,7 +1562,11 @@ extern const char bb_path_group_file[]; | |||
1562 | extern const char bb_path_motd_file[]; | 1562 | extern const char bb_path_motd_file[]; |
1563 | extern const char bb_path_wtmp_file[]; | 1563 | extern const char bb_path_wtmp_file[]; |
1564 | extern const char bb_dev_null[]; | 1564 | extern const char bb_dev_null[]; |
1565 | #if ENABLE_PLATFORM_MINGW32 | ||
1566 | #define bb_busybox_exec_path get_busybox_exec_path() | ||
1567 | #else | ||
1565 | extern const char bb_busybox_exec_path[]; | 1568 | extern const char bb_busybox_exec_path[]; |
1569 | #endif | ||
1566 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 1570 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |
1567 | * but I want to save a few bytes here */ | 1571 | * but I want to save a few bytes here */ |
1568 | extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ | 1572 | extern const char bb_PATH_root_path[]; /* "PATH=/sbin:/usr/sbin:/bin:/usr/bin" */ |