aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-21 07:35:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-21 07:35:41 +0000
commit7d25e7fc4a44602dee310694029ce247bd0e6853 (patch)
tree5b993984411f130be1d667f2ac0c53279466e3cd /main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch
parent888a762e3e7bf47d79c8f2f87ae9c2382e936d63 (diff)
downloadaports-7d25e7fc4a44602dee310694029ce247bd0e6853.tar.bz2
aports-7d25e7fc4a44602dee310694029ce247bd0e6853.tar.xz
main/libc0.9.32: resync of upstream kernel features
fixes #1907
Diffstat (limited to 'main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch')
-rw-r--r--main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch b/main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch
new file mode 100644
index 0000000000..2ad00328d2
--- /dev/null
+++ b/main/libc0.9.32/uClibc-0.9.33.2-bits-time.h-sync-with-glibc-2.16.patch
@@ -0,0 +1,36 @@
+From 3d1b82c7d9dce11c733fe23a85df7f975c7e2486 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Date: Tue, 3 Jul 2012 15:54:57 +0200
+Subject: [PATCH] bits/time.h: sync with glibc 2.16
+
+CLOCK_MONOTONIC_RAW is available since 2.6.28
+(2d42244ae71d: clocksource: introduce CLOCK_MONOTONIC_RAW), and
+CLOCK_*_COARSE since 2.6.32 (da15cfdae033: time: Introduce
+CLOCK_REALTIME_COARSE).
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+---
+ libc/sysdeps/linux/common/bits/time.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h
+index 7ed54bf..c871223 100644
+--- a/libc/sysdeps/linux/common/bits/time.h
++++ b/libc/sysdeps/linux/common/bits/time.h
+@@ -54,6 +54,12 @@
+ # define CLOCK_PROCESS_CPUTIME_ID 2
+ /* Thread-specific CPU-time clock. */
+ # define CLOCK_THREAD_CPUTIME_ID 3
++/* Monotonic system-wide clock, not adjusted for frequency scaling. */
++# define CLOCK_MONOTONIC_RAW 4
++/* Identifier for system-wide realtime clock, updated only on ticks. */
++# define CLOCK_REALTIME_COARSE 5
++/* Monotonic system-wide clock, updated only on ticks. */
++# define CLOCK_MONOTONIC_COARSE 6
+
+ /* Flag to indicate time is absolute. */
+ # define TIMER_ABSTIME 1
+--
+1.7.10.4
+