summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-26 14:41:40 +0000
committerBernhard Reutner-Fischer2006-05-26 14:41:40 +0000
commit781e42d66c120183e4dea1058dc539bdc4c53651 (patch)
treeb139320b4b1275de767168b811ca45d1523f0573 /include
parentb180e5a76678f697b2a368e2ef607d299d06a3ae (diff)
downloadbusybox-781e42d66c120183e4dea1058dc539bdc4c53651.zip
busybox-781e42d66c120183e4dea1058dc539bdc4c53651.tar.gz
- 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 'include')
-rw-r--r--include/libbb.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 82d215b..64c91b1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -11,6 +11,8 @@
#ifndef __LIBBUSYBOX_H__
#define __LIBBUSYBOX_H__ 1
+#include "platform.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -18,14 +20,10 @@
#include <sys/stat.h>
#include <termios.h>
#include <dirent.h>
-#include <stdint.h>
#include <netinet/in.h>
#include <netdb.h>
-#include <features.h>
-
-#include "platform.h"
#include "bb_config.h"
#ifdef CONFIG_SELINUX
#include <selinux/selinux.h>
@@ -41,8 +39,11 @@
#endif
/* Some useful definitions */
+#undef FALSE
#define FALSE ((int) 0)
+#undef TRUE
#define TRUE ((int) 1)
+#undef SKIP
#define SKIP ((int) 2)
/* for mtab.c */
@@ -348,6 +349,7 @@ extern const char * const bb_path_gshadow_file;
extern const char * const bb_path_group_file;
extern const char * const bb_path_securetty_file;
extern const char * const bb_path_motd_file;
+extern const char * const bb_path_wtmp_file;
extern const char * const bb_dev_null;
#ifndef BUFSIZ