From 292c51299c94985316049c2b2ad7727e33f8faf1 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 07:03:20 +0200 Subject: 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. --- libbb/messages.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbb') diff --git a/libbb/messages.c b/libbb/messages.c index 07b522bf4..ffa8d00cd 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -44,7 +44,11 @@ const char bb_path_group_file[] ALIGN1 = "/etc/group"; const char bb_path_gshadow_file[] ALIGN1 = "/etc/gshadow"; const char bb_path_motd_file[] ALIGN1 = "/etc/motd"; const char bb_dev_null[] ALIGN1 = "/dev/null"; +#if ENABLE_PLATFORM_MINGW32 +/* bb_busybox_exec_path is redefined to get_busybox_exec_path() in libbb.h */ +#else const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; +#endif const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, * but I want to save a few bytes here. Check libbb.h before changing! */ -- cgit v1.2.3-55-g6feb