diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 14:41:40 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 14:41:40 +0000 |
| commit | 8f46d0577c15ca274963736a0791c06747e31c0d (patch) | |
| tree | b139320b4b1275de767168b811ca45d1523f0573 /include | |
| parent | 73d6f297805faa5ab01168d0d29a723010e96730 (diff) | |
| download | busybox-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 'include')
| -rw-r--r-- | include/libbb.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 82d215bfe..64c91b170 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -11,6 +11,8 @@ | |||
| 11 | #ifndef __LIBBUSYBOX_H__ | 11 | #ifndef __LIBBUSYBOX_H__ |
| 12 | #define __LIBBUSYBOX_H__ 1 | 12 | #define __LIBBUSYBOX_H__ 1 |
| 13 | 13 | ||
| 14 | #include "platform.h" | ||
| 15 | |||
| 14 | #include <stdio.h> | 16 | #include <stdio.h> |
| 15 | #include <stdlib.h> | 17 | #include <stdlib.h> |
| 16 | #include <stdarg.h> | 18 | #include <stdarg.h> |
| @@ -18,14 +20,10 @@ | |||
| 18 | #include <sys/stat.h> | 20 | #include <sys/stat.h> |
| 19 | #include <termios.h> | 21 | #include <termios.h> |
| 20 | #include <dirent.h> | 22 | #include <dirent.h> |
| 21 | #include <stdint.h> | ||
| 22 | 23 | ||
| 23 | #include <netinet/in.h> | 24 | #include <netinet/in.h> |
| 24 | #include <netdb.h> | 25 | #include <netdb.h> |
| 25 | 26 | ||
| 26 | #include <features.h> | ||
| 27 | |||
| 28 | #include "platform.h" | ||
| 29 | #include "bb_config.h" | 27 | #include "bb_config.h" |
| 30 | #ifdef CONFIG_SELINUX | 28 | #ifdef CONFIG_SELINUX |
| 31 | #include <selinux/selinux.h> | 29 | #include <selinux/selinux.h> |
| @@ -41,8 +39,11 @@ | |||
| 41 | #endif | 39 | #endif |
| 42 | 40 | ||
| 43 | /* Some useful definitions */ | 41 | /* Some useful definitions */ |
| 42 | #undef FALSE | ||
| 44 | #define FALSE ((int) 0) | 43 | #define FALSE ((int) 0) |
| 44 | #undef TRUE | ||
| 45 | #define TRUE ((int) 1) | 45 | #define TRUE ((int) 1) |
| 46 | #undef SKIP | ||
| 46 | #define SKIP ((int) 2) | 47 | #define SKIP ((int) 2) |
| 47 | 48 | ||
| 48 | /* for mtab.c */ | 49 | /* for mtab.c */ |
| @@ -348,6 +349,7 @@ extern const char * const bb_path_gshadow_file; | |||
| 348 | extern const char * const bb_path_group_file; | 349 | extern const char * const bb_path_group_file; |
| 349 | extern const char * const bb_path_securetty_file; | 350 | extern const char * const bb_path_securetty_file; |
| 350 | extern const char * const bb_path_motd_file; | 351 | extern const char * const bb_path_motd_file; |
| 352 | extern const char * const bb_path_wtmp_file; | ||
| 351 | extern const char * const bb_dev_null; | 353 | extern const char * const bb_dev_null; |
| 352 | 354 | ||
| 353 | #ifndef BUFSIZ | 355 | #ifndef BUFSIZ |
