This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] define _POSIX_MONOTONIC_CLOCK on Cygwin
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib <newlib at sources dot redhat dot com>
- Date: Sun, 08 Aug 2010 22:30:41 -0500
- Subject: [PATCH] define _POSIX_MONOTONIC_CLOCK on Cygwin
The attached patch is a prerequisite to a Cygwin patch to add POSIX
Monotonic Clock support.
Yaakov
Cygwin/X
2010-08-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/features.h: Define _POSIX_MONOTONIC_CLOCK for Cygwin.
Index: libc/include/sys/features.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/features.h,v
retrieving revision 1.21
diff -u -r1.21 features.h
--- libc/include/sys/features.h 17 Mar 2010 17:13:00 -0000 1.21
+++ libc/include/sys/features.h 2 Aug 2010 07:55:27 -0000
@@ -112,7 +112,7 @@
#define _POSIX_MEMLOCK_RANGE 200112L
#define _POSIX_MEMORY_PROTECTION 200112L
#define _POSIX_MESSAGE_PASSING 200112L
-/* #define _POSIX_MONOTONIC_CLOCK -1 */
+#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_NO_TRUNC 1
/* #define _POSIX_PRIORITIZED_IO -1 */
#define _POSIX_PRIORITY_SCHEDULING 200112L