aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-02 03:08:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-02 03:08:57 +0100
commit5b9b1365a086056e992e7868db8e49989fedcbaf (patch)
treeafa6360504fab7057acb7477df353b178b250512 /include
parent4b061461d3f5cb62a6f384d80fd5a3f6be51bd25 (diff)
downloadbusybox-5b9b1365a086056e992e7868db8e49989fedcbaf.tar.gz
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.h1
-rw-r--r--include/platform.h16
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 @@
#include <netdb.h>
#include <setjmp.h>
#include <signal.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#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 @@
#ifndef __APPLE__
# include <arpa/inet.h>
# if !defined(__socklen_t_defined) && !defined(_SOCKLEN_T_DECLARED)
+# define socklen_t bb_socklen_t
typedef int socklen_t;
# endif
#else
@@ -250,21 +251,6 @@ typedef int socklen_t;
#if defined __GLIBC__ || defined __UCLIBC__ \
|| defined __dietlibc__ || defined _NEWLIB_VERSION
# include <features.h>
-# define HAVE_FEATURES_H
-# include <stdint.h>
-# define HAVE_STDINT_H
-#elif !defined __APPLE__
-/* Largest integral types. */
-# if BB_BIG_ENDIAN
-/* Looks BROKEN! */
-typedef long intmax_t;
-typedef unsigned long uintmax_t;
-# else
-__extension__
-typedef long long intmax_t;
-__extension__
-typedef unsigned long long uintmax_t;
-# endif
#endif
/* Size-saving "small" ints (arch-dependent) */