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.

Samuel
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

Reply via email to