diff options
Diffstat (limited to 'libbb/messages.c')
| -rw-r--r-- | libbb/messages.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 6914d5701..311eda004 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
| @@ -5,6 +5,9 @@ | |||
| 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
| 6 | */ | 6 | */ |
| 7 | #include "libbb.h" | 7 | #include "libbb.h" |
| 8 | #if ENABLE_PLATFORM_MINGW32 | ||
| 9 | # include "BB_VER.h" | ||
| 10 | #endif | ||
| 8 | 11 | ||
| 9 | /* allow version to be extended, via CFLAGS */ | 12 | /* allow version to be extended, via CFLAGS */ |
| 10 | #ifndef BB_EXTRA_VERSION | 13 | #ifndef BB_EXTRA_VERSION |
| @@ -27,7 +30,26 @@ const char bb_msg_standard_output[] ALIGN1 = "standard output"; | |||
| 27 | 30 | ||
| 28 | const char bb_hexdigits_upcase[] ALIGN1 = "0123456789ABCDEF"; | 31 | const char bb_hexdigits_upcase[] ALIGN1 = "0123456789ABCDEF"; |
| 29 | 32 | ||
| 33 | #if !ENABLE_PLATFORM_MINGW32 | ||
| 30 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; | 34 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; |
| 35 | #else | ||
| 36 | /* Some special shell variables are placed in the environment immediately | ||
| 37 | * when they're exported. | ||
| 38 | * | ||
| 39 | * BB_GLOBBING and BB_UMASK are excluded because users shouldn't be | ||
| 40 | * messing with them; BB_FIX_BACKSLASH is excluded because it only | ||
| 41 | * affects particular applets, not the shell itself. | ||
| 42 | * | ||
| 43 | * If you change any of these you should also update the definitions in | ||
| 44 | * include/libbb.h. | ||
| 45 | */ | ||
| 46 | const char bbvar[] ALIGN1 = | ||
| 47 | "BB_OVERRIDE_APPLETS\0" \ | ||
| 48 | "BB_SKIP_ANSI_EMULATION\0" \ | ||
| 49 | "BB_TERMINAL_MODE\0" \ | ||
| 50 | "BB_SYSTEMROOT\0" \ | ||
| 51 | "BB_CRITICAL_ERROR_DIALOGS\0"; | ||
| 52 | #endif | ||
| 31 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; | 53 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; |
| 32 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 54 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |
| 33 | * but I want to save a few bytes here. Check libbb.h before changing! */ | 55 | * but I want to save a few bytes here. Check libbb.h before changing! */ |
