From 69cad8a142db93606478534c9e57bfef0e36d260 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Mon, 5 Apr 2010 22:25:16 +0200 Subject: libbb: skip utmp part in messages.c on Windows --- libbb/messages.c | 2 ++ 1 file changed, 2 insertions(+) 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; * and it will end up in bss */ const int const_int_0 = 0; +#if !ENABLE_PLATFORM_MINGW32 /* No wtmp on Windows */ #include /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */ const char bb_path_wtmp_file[] ALIGN1 = @@ -67,6 +68,7 @@ const char bb_path_wtmp_file[] ALIGN1 = #else #error unknown path to wtmp file #endif +#endif /* We use it for "global" data via *(struct global*)&bb_common_bufsiz1. * Since gcc insists on aligning struct global's members, it would be a pity -- cgit v1.2.3-55-g6feb