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>
This commit is contained in:
@ -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) */
|
||||
|
Reference in New Issue
Block a user