summaryrefslogtreecommitdiffstats
path: root/newlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-18 15:29:22 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-19 16:51:00 +0200
commitcb376b255da5d4300efb4723dd8a8d09eae9f7c6 (patch)
tree21c66c97af813200be16e36319709aee4c0c3358 /newlib
parent76a2110b473c12eb7a9c9e5d15d54309db5f8b9c (diff)
downloadcygnal-cb376b255da5d4300efb4723dd8a8d09eae9f7c6.tar.gz
cygnal-cb376b255da5d4300efb4723dd8a8d09eae9f7c6.tar.bz2
cygnal-cb376b255da5d4300efb4723dd8a8d09eae9f7c6.zip
Introduce __socklen_t for BSD compatibility
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 297b1ea5a..37154ff37 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -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) */