[PATCH 12/22] Provide fixpt_t via <sys/types.h>
Sebastian Huber
sebastian.huber@embedded-brains.de
Mon Apr 18 13:49:00 GMT 2016
Provide fixpt_t via <sys/types.h> if __BSD_VISIBLE for BSD
compatibility.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/include/sys/_types.h | 1 +
newlib/libc/include/sys/types.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 0628b15..d47d7e9 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -199,6 +199,7 @@ typedef __uint32_t __socklen_t;
#endif
typedef int __accmode_t; /* access permissions */
+typedef __uint32_t __fixpt_t; /* fixed point number */
typedef unsigned short __nlink_t;
typedef long __suseconds_t; /* microseconds (signed) */
typedef unsigned long __useconds_t; /* microseconds (unsigned) */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 50455f2..d473ffc 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -85,6 +85,8 @@ typedef int cpulevel_t;
typedef int cpusetid_t;
typedef int cpuwhich_t;
+typedef __fixpt_t fixpt_t; /* fixed point number */
+
#ifndef _IN_ADDR_T_DECLARED
typedef __uint32_t in_addr_t; /* base type for internet address */
#define _IN_ADDR_T_DECLARED
--
1.8.4.5
More information about the Newlib
mailing list