aboutsummaryrefslogtreecommitdiff
path: root/libbb/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/messages.c')
-rw-r--r--libbb/messages.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index 3c3ec3519..9e7bd0fef 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -50,17 +50,16 @@ const int const_int_1 = 1;
50 * and it will end up in bss */ 50 * and it will end up in bss */
51const int const_int_0 = 0; 51const int const_int_0 = 0;
52 52
53#if !ENABLE_PLATFORM_MINGW32 /* No wtmp on Windows */ 53#if ENABLE_FEATURE_WTMP
54#include <utmp.h>
55/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ 54/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */
56const char bb_path_wtmp_file[] ALIGN1 = 55const char bb_path_wtmp_file[] ALIGN1 =
57#if defined _PATH_WTMP 56# if defined _PATH_WTMP
58 _PATH_WTMP; 57 _PATH_WTMP;
59#elif defined WTMP_FILE 58# elif defined WTMP_FILE
60 WTMP_FILE; 59 WTMP_FILE;
61#else 60# else
62#error unknown path to wtmp file 61# error unknown path to wtmp file
63#endif 62# endif
64#endif 63#endif
65 64
66/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. 65/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1.