This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 11/22] Provide cpulevel_t, cpusetid_t and cpuwhich_t
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Mon, 18 Apr 2016 15:29:31 +0200
- Subject: [PATCH 11/22] Provide cpulevel_t, cpusetid_t and cpuwhich_t
- Authentication-results: sourceware.org; auth=none
- References: <1460986182-11952-1-git-send-email-sebastian dot huber at embedded-brains dot de>
Provide cpulevel_t, cpusetid_t and cpuwhich_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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 3cbed2c..50455f2 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -81,6 +81,10 @@ typedef struct cap_rights cap_rights_t;
typedef const char * c_caddr_t; /* core address, pointer to const */
+typedef int cpulevel_t;
+typedef int cpusetid_t;
+typedef int cpuwhich_t;
+
#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