Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-18 16:29:24 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-04-19 18:21:38 +0300
commit3ce1e7901e9b9b8f161df3fad0aa5ef3167d4afb (patch)
tree6727a8cce47e0b86f52f53d24800025d1241aaea /newlib
parente03a7056a67a24a0c63192e5d9ec334fc96291ac (diff)
Provide in_addr_t via <sys/types.h>
Provide in_addr_t via <sys/types.h> if __BSD_VISIBLE 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 31f765e3e..1d2d54c37 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -66,7 +66,12 @@ typedef quad_t * qaddr_t;
#include <sys/select.h>
# define physadr physadr_t
# define quad quad_t
+
+#ifndef _IN_ADDR_T_DECLARED
+typedef __uint32_t in_addr_t; /* base type for internet address */
+#define _IN_ADDR_T_DECLARED
#endif
+#endif /* __BSD_VISIBLE */
#if __MISC_VISIBLE
#ifndef _BSDTYPES_DEFINED