mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: glibc: Update to 2.33.
* gnu/packages/base.scm (glibc): Update to 2.33. [source]: Remove "glibc-hurd-signal-sa-siginfo.patch", now upstream. * gnu/packages/patches/glibc-hurd-clock_gettime_monotonic.patch: Update. * gnu/packages/patches/glibc-hurd-signal-sa-siginfo.patch: Remove. * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
This commit is contained in:
parent
4863c4304e
commit
87961fc965
4 changed files with 11 additions and 651 deletions
|
@ -24,18 +24,17 @@ Subject: [PATCH 2/2] Use realtime clock for the monotonic clock.
|
|||
4 files changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/sysdeps/mach/clock_gettime.c b/sysdeps/mach/clock_gettime.c
|
||||
index ac3547df3c..af8681ba4e 100644
|
||||
index 6862fc8c..be1449bf 100644
|
||||
--- a/sysdeps/mach/clock_gettime.c
|
||||
+++ b/sysdeps/mach/clock_gettime.c
|
||||
@@ -25,7 +25,7 @@
|
||||
int
|
||||
__clock_gettime (clockid_t clock_id, struct timespec *ts)
|
||||
{
|
||||
- if (clock_id != CLOCK_REALTIME)
|
||||
+ if (clock_id != CLOCK_MONOTONIC && clock_id != CLOCK_REALTIME)
|
||||
{
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
@@ -32,6 +32,7 @@ __clock_gettime (clockid_t clock_id, struct timespec *ts)
|
||||
switch (clock_id) {
|
||||
|
||||
case CLOCK_REALTIME:
|
||||
+ case CLOCK_MONOTONIC:
|
||||
{
|
||||
/* __host_get_time can only fail if passed an invalid host_t.
|
||||
__mach_host_self could theoretically fail (producing an
|
||||
diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h
|
||||
index 0050151332..27b3a28ab7 100644
|
||||
--- a/sysdeps/mach/hurd/bits/posix_opt.h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue