aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/messages.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index 1d0e58720..07b522bf4 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -57,6 +57,7 @@ const int const_int_1 = 1;
57 * and it will end up in bss */ 57 * and it will end up in bss */
58const int const_int_0 = 0; 58const int const_int_0 = 0;
59 59
60#if !ENABLE_PLATFORM_MINGW32 /* No wtmp on Windows */
60#include <utmp.h> 61#include <utmp.h>
61/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ 62/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */
62const char bb_path_wtmp_file[] ALIGN1 = 63const char bb_path_wtmp_file[] ALIGN1 =
@@ -67,6 +68,7 @@ const char bb_path_wtmp_file[] ALIGN1 =
67#else 68#else
68#error unknown path to wtmp file 69#error unknown path to wtmp file
69#endif 70#endif
71#endif
70 72
71/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. 73/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1.
72 * Since gcc insists on aligning struct global's members, it would be a pity 74 * Since gcc insists on aligning struct global's members, it would be a pity