aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-26 14:41:40 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-26 14:41:40 +0000
commit781e42d66c120183e4dea1058dc539bdc4c53651 (patch)
treeb139320b4b1275de767168b811ca45d1523f0573 /libbb
parentb180e5a76678f697b2a368e2ef607d299d06a3ae (diff)
downloadbusybox-w32-781e42d66c120183e4dea1058dc539bdc4c53651.tar.gz
busybox-w32-781e42d66c120183e4dea1058dc539bdc4c53651.tar.bz2
busybox-w32-781e42d66c120183e4dea1058dc539bdc4c53651.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.
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