bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glibc CPUCLOCK_WHICH missing error for i686-pc-gnu


From: Allan McRae
Subject: Re: glibc CPUCLOCK_WHICH missing error for i686-pc-gnu
Date: Tue, 12 Jan 2010 22:17:50 +1000
User-agent: Thunderbird 2.0.0.23 (X11/20091001)

Samuel Thibault wrote:
Allan McRae, le Tue 12 Jan 2010 17:36:49 +1000, a écrit :
/home/allan/hurd/build/glibc-build/rt/librt_pic.a(clock_settime.os): In function `clock_settime':
clock_settime.c:(.text+0x6f): undefined reference to `CPUCLOCK_WHICH'

This doesn't happen on Debian because Debian compiles only for i486, for
which HP_TIMING_AVAIL is not defined.

You can use the attached patch.


Great, that put me of the right track. I had to add a bit more to the patch to get that file included in the right place (based on the linux version of that file). The updated version is attached for anyones interest.

Thanks,
Allan
diff --git a/sysdeps/mach/hurd/kernel-posix-cpu-timers.h 
b/sysdeps/mach/hurd/kernel-posix-cpu-timers.h
new file mode 100644
index 0000000..86a568f
--- /dev/null
+++ b/sysdeps/mach/hurd/kernel-posix-cpu-timers.h
@@ -0,0 +1,4 @@
+/* Parameters for the Hurd ABI for CPU clocks.  */
+
+#define CPUCLOCK_WHICH(clock)  ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
+#define CPUCLOCK_CLOCK_MASK    3
diff --git a/sysdeps/mach/hurd/clock_settime.c 
b/sysdeps/mach/hurd/clock_settime.c
new file mode 100644
index 0000000..86a568f
--- /dev/null
+++ b/sysdeps/mach/hurd/clock_settime.c
@@ -0,0 +1,2 @@
+#include "kernel-posix-cpu-timers.h"
+#include <sysdeps/unix/clock_settime.c>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]