aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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) */