public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Add BSD guard for nlink_t
@ 2016-04-15 12:55 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-04-15 12:55 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4fda5a75fd69dfea40e50548b0c492e7e97e0c55
commit 4fda5a75fd69dfea40e50548b0c492e7e97e0c55
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Fri Apr 15 13:44:23 2016 +0200
Add BSD guard for nlink_t
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diff:
---
newlib/libc/include/sys/_types.h | 1 +
newlib/libc/include/sys/types.h | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 88a18b3..32e7fef 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -173,6 +173,7 @@ typedef _CLOCKID_T_ __clockid_t;
#define _TIMER_T_ unsigned long
typedef _TIMER_T_ __timer_t;
+typedef unsigned short __nlink_t;
typedef long __suseconds_t; /* microseconds (signed) */
#endif /* _SYS__TYPES_H */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 6d9865c..3e803c3 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -205,7 +205,10 @@ typedef __mode_t mode_t; /* permissions */
#define _MODE_T_DECLARED
#endif
-typedef unsigned short nlink_t;
+#ifndef _NLINK_T_DECLARED
+typedef __nlink_t nlink_t; /* link count */
+#define _NLINK_T_DECLARED
+#endif
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
typedef __clockid_t clockid_t;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-15 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-15 12:55 [newlib-cygwin] Add BSD guard for nlink_t Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).