diff options
Diffstat (limited to 'libbb/messages.c')
-rw-r--r-- | libbb/messages.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 66e466ffa..2acbc3bca 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -48,15 +48,16 @@ const int const_int_1 = 1; | |||
48 | * and it will end up in bss */ | 48 | * and it will end up in bss */ |
49 | const int const_int_0 = 0; | 49 | const int const_int_0 = 0; |
50 | 50 | ||
51 | #include <utmp.h> | 51 | #if ENABLE_FEATURE_WTMP |
52 | /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ | 52 | /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ |
53 | const char bb_path_wtmp_file[] ALIGN1 = | 53 | const char bb_path_wtmp_file[] ALIGN1 = |
54 | #if defined _PATH_WTMP | 54 | # if defined _PATH_WTMP |
55 | _PATH_WTMP; | 55 | _PATH_WTMP; |
56 | #elif defined WTMP_FILE | 56 | # elif defined WTMP_FILE |
57 | WTMP_FILE; | 57 | WTMP_FILE; |
58 | #else | 58 | # else |
59 | #error unknown path to wtmp file | 59 | # error unknown path to wtmp file |
60 | # endif | ||
60 | #endif | 61 | #endif |
61 | 62 | ||
62 | /* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. | 63 | /* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. |