more thorough fix for systems with strange socklen_t

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-02-02 12:45:38 +01:00
parent 5b9b1365a0
commit bb1dcc9aab
6 changed files with 36 additions and 32 deletions

View File

@@ -210,18 +210,6 @@
} while (0)
#endif
/* ---- Networking ------------------------------------------ */
#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
# include <netinet/in.h>
#endif
/* ---- Compiler dependent settings ------------------------- */
#if (defined __digital__ && defined __unix__) \