aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 14:41:40 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 14:41:40 +0000
commit8f46d0577c15ca274963736a0791c06747e31c0d (patch)
treeb139320b4b1275de767168b811ca45d1523f0573 /libbb
parent73d6f297805faa5ab01168d0d29a723010e96730 (diff)
downloadbusybox-w32-8f46d0577c15ca274963736a0791c06747e31c0d.tar.gz
busybox-w32-8f46d0577c15ca274963736a0791c06747e31c0d.tar.bz2
busybox-w32-8f46d0577c15ca274963736a0791c06747e31c0d.zip
- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).
- fix last.c to also look at the double-underscore UT_ defines. git-svn-id: svn://busybox.net/trunk/busybox@15193 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/messages.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c
index ab4c5d4b1..89ac94e13 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -93,6 +93,20 @@ const char * const bb_default_login_shell = LIBBB_DEFAULT_LOGIN_SHELL;
93const char * const bb_dev_null = "/dev/null"; 93const char * const bb_dev_null = "/dev/null";
94#endif 94#endif
95 95
96#ifdef L_bb_path_wtmp_file
97#include <utmp.h>
98/* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */
99const char * const bb_path_wtmp_file =
100#if defined _PATH_WTMP
101_PATH_WTMP;
102#elif defined WTMP_FILE
103WTMP_FILE;
104#else
105# error unknown path to wtmp file
106#endif
107#endif
108
109
96#ifdef L_bb_common_bufsiz1 110#ifdef L_bb_common_bufsiz1
97char bb_common_bufsiz1[BUFSIZ+1]; 111char bb_common_bufsiz1[BUFSIZ+1];
98#endif 112#endif