diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-05 22:25:16 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-19 19:23:31 +0200 |
commit | e8fb549ff78bf8ac596b6381d3bd76f98631932c (patch) | |
tree | 34289a319a650b4a14efc80141703926772ca685 | |
parent | 00cdfe28a456b230711b2d235d84dfc4103afd61 (diff) | |
download | busybox-w32-e8fb549ff78bf8ac596b6381d3bd76f98631932c.tar.gz busybox-w32-e8fb549ff78bf8ac596b6381d3bd76f98631932c.tar.bz2 busybox-w32-e8fb549ff78bf8ac596b6381d3bd76f98631932c.zip |
libbb: skip utmp part in messages.c on Windows
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
-rw-r--r-- | libbb/messages.c | 2 |
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 */ |
58 | const int const_int_0 = 0; | 58 | const 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" */ |
62 | const char bb_path_wtmp_file[] ALIGN1 = | 63 | const 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 |