Introduce __socklen_t for BSD compatibility

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber
2016-04-18 15:29:22 +02:00
committed by Corinna Vinschen
parent 76a2110b47
commit cb376b255d
3 changed files with 11 additions and 5 deletions

View File

@ -42,4 +42,8 @@ typedef __uint64_t __ino_t;
#define __machine_key_t_defined
typedef long long __key_t;
/* Not unsigned for backward compatibility. */
#define __machine_socklen_t_defined
typedef int __socklen_t;
#endif /* _MACHINE__TYPES_H */