From e8fb549ff78bf8ac596b6381d3bd76f98631932c 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy --- libbb/messages.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb') 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