diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-02 03:08:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-02 03:08:57 +0100 |
commit | 5b9b1365a086056e992e7868db8e49989fedcbaf (patch) | |
tree | afa6360504fab7057acb7477df353b178b250512 /include | |
parent | 4b061461d3f5cb62a6f384d80fd5a3f6be51bd25 (diff) | |
download | busybox-w32-5b9b1365a086056e992e7868db8e49989fedcbaf.tar.gz busybox-w32-5b9b1365a086056e992e7868db8e49989fedcbaf.tar.bz2 busybox-w32-5b9b1365a086056e992e7868db8e49989fedcbaf.zip |
stat: get rid on intmax_t
function old new delta
print_it 225 218 -7
print_stat 919 889 -30
print_statfs 370 339 -31
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-68) Total: -68 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 | ||||
-rw-r--r-- | include/platform.h | 16 |
2 files changed, 2 insertions, 15 deletions
diff --git a/include/libbb.h b/include/libbb.h index 09852d036..3b7eea286 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <netdb.h> | 20 | #include <netdb.h> |
21 | #include <setjmp.h> | 21 | #include <setjmp.h> |
22 | #include <signal.h> | 22 | #include <signal.h> |
23 | #include <stdint.h> | ||
23 | #include <stdio.h> | 24 | #include <stdio.h> |
24 | #include <stdlib.h> | 25 | #include <stdlib.h> |
25 | #include <stdarg.h> | 26 | #include <stdarg.h> |
diff --git a/include/platform.h b/include/platform.h index a41daa08c..c34a46e79 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -215,6 +215,7 @@ | |||
215 | #ifndef __APPLE__ | 215 | #ifndef __APPLE__ |
216 | # include <arpa/inet.h> | 216 | # include <arpa/inet.h> |
217 | # if !defined(__socklen_t_defined) && !defined(_SOCKLEN_T_DECLARED) | 217 | # if !defined(__socklen_t_defined) && !defined(_SOCKLEN_T_DECLARED) |
218 | # define socklen_t bb_socklen_t | ||
218 | typedef int socklen_t; | 219 | typedef int socklen_t; |
219 | # endif | 220 | # endif |
220 | #else | 221 | #else |
@@ -250,21 +251,6 @@ typedef int socklen_t; | |||
250 | #if defined __GLIBC__ || defined __UCLIBC__ \ | 251 | #if defined __GLIBC__ || defined __UCLIBC__ \ |
251 | || defined __dietlibc__ || defined _NEWLIB_VERSION | 252 | || defined __dietlibc__ || defined _NEWLIB_VERSION |
252 | # include <features.h> | 253 | # include <features.h> |
253 | # define HAVE_FEATURES_H | ||
254 | # include <stdint.h> | ||
255 | # define HAVE_STDINT_H | ||
256 | #elif !defined __APPLE__ | ||
257 | /* Largest integral types. */ | ||
258 | # if BB_BIG_ENDIAN | ||
259 | /* Looks BROKEN! */ | ||
260 | typedef long intmax_t; | ||
261 | typedef unsigned long uintmax_t; | ||
262 | # else | ||
263 | __extension__ | ||
264 | typedef long long intmax_t; | ||
265 | __extension__ | ||
266 | typedef unsigned long long uintmax_t; | ||
267 | # endif | ||
268 | #endif | 254 | #endif |
269 | 255 | ||
270 | /* Size-saving "small" ints (arch-dependent) */ | 256 | /* Size-saving "small" ints (arch-dependent) */ |