aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-01-29 23:29:30 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-01-29 23:29:30 +0000
commit4700b8293a51a466b9558244c376ff1e614de80e (patch)
tree8e8a5e8f39882d5081f2f6453080472ce912c49e
parent01e3c89709d01415b3f5a363714104460a4a43e4 (diff)
downloadnewlib-4700b8293a51a466b9558244c376ff1e614de80e.zip
newlib-4700b8293a51a466b9558244c376ff1e614de80e.tar.gz
newlib-4700b8293a51a466b9558244c376ff1e614de80e.tar.bz2
2003-01-29 Jason Tishler <jason@tishler.net>
* libc/include/time.h: Declare nanosleep() under Cygwin.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/time.h10
2 files changed, 14 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 29bd68c..087e6a6 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-29 Jason Tishler <jason@tishler.net>
+
+ * libc/include/time.h: Declare nanosleep() under Cygwin.
+
2003-01-24 Nick Clifton <nickc@redhat.com>
* Add sh2e support:
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h
index 53e3c4e..f83c38d 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