aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-05 22:25:16 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 18:38:53 +1000
commit69cad8a142db93606478534c9e57bfef0e36d260 (patch)
tree8afd0d2be9846c8012b40bd23ad980a8add9c95c
parentfeb8d27ec8b9c8d8838f8f841104d76141d11c95 (diff)
downloadbusybox-w32-69cad8a142db93606478534c9e57bfef0e36d260.tar.gz
busybox-w32-69cad8a142db93606478534c9e57bfef0e36d260.tar.bz2
busybox-w32-69cad8a142db93606478534c9e57bfef0e36d260.zip
libbb: skip utmp part in messages.c on Windows
-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