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

@ -188,6 +188,10 @@ typedef _CLOCKID_T_ __clockid_t;
#define _TIMER_T_ unsigned long
typedef _TIMER_T_ __timer_t;
#ifndef __machine_socklen_t_defined
typedef __uint32_t __socklen_t;
#endif
typedef unsigned short __nlink_t;
typedef long __suseconds_t; /* microseconds (signed) */
typedef unsigned long __useconds_t; /* microseconds (unsigned) */