This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]