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
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-07 12:20:35 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-08 07:57:52 +0300
commit282d57d2a8462c56ceeafcc10095cab35343eb09 (patch)
tree3f2458f8abe51950e4f72d8192de1572d48879e4 /newlib/libc/include
parent4ab39e0a85a0fa9ddab6a179040b24dbfabd87ad (diff)
Reduce namespace pollution from <sys/_types.h>
Provide only __daddr_t through <sys/_types.h>.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/sys/_types.h4
-rw-r--r--newlib/libc/include/sys/types.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 017a0aaf6..d1112d5d1 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -194,6 +194,10 @@ typedef _TIME_T_ __time_t;
typedef _CLOCKID_T_ __clockid_t;
+#ifndef __machine_daddr_t_defined
+typedef long __daddr_t;
+#endif
+
#define _TIMER_T_ unsigned long
typedef _TIMER_T_ __timer_t;
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 4613ac81f..5035d540d 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -115,10 +115,8 @@ typedef _TIME_T_ time_t;
#define _TIME_T_DECLARED
#endif
-#ifndef __daddr_t_defined
-typedef long daddr_t;
-#define __daddr_t_defined
-#endif
+typedef __daddr_t daddr_t;
+
#ifndef __caddr_t_defined
typedef char * caddr_t;
#define __caddr_t_defined