summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/time.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index 53e3c4e89..f83c38d05 100644
--- a/newlib/libc/include/time.h
+++ b/newlib/libc/include/time.h
@@ -163,6 +163,16 @@ int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp));
#ifdef __cplusplus
}
#endif
+#else
+#ifdef __CYGWIN__
+#ifdef __cplusplus
+extern "C" {
+#endif
+int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp));
+#ifdef __cplusplus
+}
+#endif
+#endif /* __CYGWIN__ */
#endif /* _POSIX_TIMERS */
#ifdef __cplusplus