aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bb_config.h142
-rw-r--r--include/busybox.h2
-rw-r--r--include/grp_.h2
-rw-r--r--include/libbb.h1
4 files changed, 142 insertions, 5 deletions
diff --git a/include/bb_config.h b/include/bb_config.h
new file mode 100644
index 000000000..beec07cba
--- /dev/null
+++ b/include/bb_config.h
@@ -0,0 +1,142 @@
1/* Hack. kbuild will not define needed macros for config symbols
2 * which depend on other symbols, which themself are off.
3 * Provide them here by hand. Need a better idea. */
4
5#ifndef ENABLE_KILLALL5
6#define ENABLE_KILLALL5 0
7#define USE_KILLALL5(...)
8#define SKIP_KILLALL5(...) __VA_ARGS__
9#endif
10
11#ifndef ENABLE_FEATURE_QUERY_MODULE_INTERFACE
12#define ENABLE_FEATURE_QUERY_MODULE_INTERFACE 0
13#define USE_FEATURE_QUERY_MODULE_INTERFACE(...)
14#define SKIP_FEATURE_QUERY_MODULE_INTERFACE(...) __VA_ARGS__
15#endif
16
17#ifndef ENABLE_FEATURE_CLEAN_UP
18#define ENABLE_FEATURE_CLEAN_UP 0
19#define USE_FEATURE_CLEAN_UP(...)
20#define SKIP_FEATURE_CLEAN_UP(...) __VA_ARGS__
21#endif
22
23#ifndef ENABLE_FEATURE_SH_STANDALONE_SHELL
24#define ENABLE_FEATURE_SH_STANDALONE_SHELL 0
25#define USE_FEATURE_SH_STANDALONE_SHELL(...)
26#define SKIP_FEATURE_SH_STANDALONE_SHELL(...) __VA_ARGS__
27#endif
28
29#ifndef ENABLE_FEATURE_MTAB_SUPPORT
30#define ENABLE_FEATURE_MTAB_SUPPORT 0
31#define USE_FEATURE_MTAB_SUPPORT(...)
32#define SKIP_FEATURE_MTAB_SUPPORT(...) __VA_ARGS__
33#endif
34
35#ifndef ENABLE_FEATURE_PRESERVE_HARDLINKS
36#define ENABLE_FEATURE_PRESERVE_HARDLINKS 0
37#define USE_FEATURE_PRESERVE_HARDLINKS(...)
38#define SKIP_FEATURE_PRESERVE_HARDLINKS(...) __VA_ARGS__
39#endif
40
41#ifndef ENABLE_FEATURE_AUTOWIDTH
42#define ENABLE_FEATURE_AUTOWIDTH 0
43#define USE_FEATURE_AUTOWIDTH(...)
44#define SKIP_FEATURE_AUTOWIDTH(...) __VA_ARGS__
45#endif
46
47#ifndef ENABLE_FEATURE_SUID_CONFIG
48#define ENABLE_FEATURE_SUID_CONFIG 0
49#define USE_FEATURE_SUID_CONFIG(...)
50#define SKIP_FEATURE_SUID_CONFIG(...) __VA_ARGS__
51#endif
52
53#ifndef ENABLE_APP_DUMPLEASES
54#define ENABLE_APP_DUMPLEASES 0
55#define USE_APP_DUMPLEASES(...)
56#define SKIP_APP_DUMPLEASES(...) __VA_ARGS__
57#endif
58
59#ifndef ENABLE_E2LABEL
60#define ENABLE_E2LABEL 0
61#define USE_E2LABEL(...)
62#define SKIP_E2LABEL(...) __VA_ARGS__
63#endif
64
65#ifndef ENABLE_FEATURE_GREP_EGREP_ALIAS
66#define ENABLE_FEATURE_GREP_EGREP_ALIAS 0
67#define USE_FEATURE_GREP_EGREP_ALIAS(...)
68#define SKIP_FEATURE_GREP_EGREP_ALIAS(...) __VA_ARGS__
69#endif
70
71#ifndef ENABLE_FEATURE_GREP_FGREP_ALIAS
72#define ENABLE_FEATURE_GREP_FGREP_ALIAS 0
73#define USE_FEATURE_GREP_FGREP_ALIAS(...)
74#define SKIP_FEATURE_GREP_FGREP_ALIAS(...) __VA_ARGS__
75#endif
76
77#ifndef ENABLE_FINDFS
78#define ENABLE_FINDFS 0
79#define USE_FINDFS(...)
80#define SKIP_FINDFS(...) __VA_ARGS__
81#endif
82
83#ifndef ENABLE_IPADDR
84#define ENABLE_IPADDR 0
85#define USE_IPADDR(...)
86#define SKIP_IPADDR(...) __VA_ARGS__
87#endif
88
89#ifndef ENABLE_IPLINK
90#define ENABLE_IPLINK 0
91#define USE_IPLINK(...)
92#define SKIP_IPLINK(...) __VA_ARGS__
93#endif
94
95#ifndef ENABLE_IPROUTE
96
97#define ENABLE_IPROUTE 0
98#define USE_IPROUTE(...)
99#define SKIP_IPROUTE(...) __VA_ARGS__
100#endif
101
102#ifndef ENABLE_IPTUNNEL
103#define ENABLE_IPTUNNEL 0
104#define USE_IPTUNNEL(...)
105#define SKIP_IPTUNNEL(...) __VA_ARGS__
106#endif
107
108#ifndef ENABLE_KILLALL
109#define ENABLE_KILLALL 0
110#define USE_KILLALL(...)
111#define SKIP_KILLALL(...) __VA_ARGS__
112#endif
113
114#ifndef ENABLE_KLOGD
115#define ENABLE_KLOGD 0
116#define USE_KLOGD(...)
117#define SKIP_KLOGD(...) __VA_ARGS__
118#endif
119
120#ifndef ENABLE_FEATURE_INITRD
121#define ENABLE_FEATURE_INITRD 0
122#define USE_FEATURE_INITRD(...)
123#define SKIP_FEATURE_INITRD(...) __VA_ARGS__
124#endif
125
126#ifndef ENABLE_LOGREAD
127#define ENABLE_LOGREAD 0
128#define USE_LOGREAD(...)
129#define SKIP_LOGREAD(...) __VA_ARGS__
130#endif
131
132#ifndef ENABLE_PING6
133#define ENABLE_PING6 0
134#define USE_PING6(...)
135#define SKIP_PING6(...) __VA_ARGS__
136#endif
137
138#ifndef ENABLE_UNIX2DOS
139#define ENABLE_UNIX2DOS 0
140#define USE_UNIX2DOS(...)
141#define SKIP_UNIX2DOS(...) __VA_ARGS__
142#endif
diff --git a/include/busybox.h b/include/busybox.h
index fbda6efcb..d20337ff1 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -7,8 +7,6 @@
7#ifndef _BB_INTERNAL_H_ 7#ifndef _BB_INTERNAL_H_
8#define _BB_INTERNAL_H_ 1 8#define _BB_INTERNAL_H_ 1
9 9
10#include "bb_config.h"
11
12#include "libbb.h" 10#include "libbb.h"
13 11
14/* order matters: used as index into "install_dir[]" in busybox.c */ 12/* order matters: used as index into "install_dir[]" in busybox.c */
diff --git a/include/grp_.h b/include/grp_.h
index 3ac5c8461..b34addfa2 100644
--- a/include/grp_.h
+++ b/include/grp_.h
@@ -30,12 +30,10 @@
30#ifndef _GRP_H 30#ifndef _GRP_H
31#define _GRP_H 1 31#define _GRP_H 1
32 32
33
34#include <sys/types.h> 33#include <sys/types.h>
35#include <features.h> 34#include <features.h>
36#include <stdio.h> 35#include <stdio.h>
37 36
38
39/* The group structure. */ 37/* The group structure. */
40struct group 38struct group
41{ 39{
diff --git a/include/libbb.h b/include/libbb.h
index 88847ac59..ed1d780fd 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -377,7 +377,6 @@ extern const char *applet_name;
377extern const char bb_msg_full_version[]; 377extern const char bb_msg_full_version[];
378extern const char bb_msg_memory_exhausted[]; 378extern const char bb_msg_memory_exhausted[];
379extern const char bb_msg_invalid_date[]; 379extern const char bb_msg_invalid_date[];
380extern const char bb_msg_io_error[];
381extern const char bb_msg_read_error[]; 380extern const char bb_msg_read_error[];
382extern const char bb_msg_write_error[]; 381extern const char bb_msg_write_error[];
383extern const char bb_msg_name_longer_than_foo[]; 382extern const char bb_msg_name_longer_than_foo[];