Fix a new warning
Andreas Jaeger
aj@suse.de
Sat Apr 21 09:22:00 GMT 2001
I now get these warnings:
../sysdeps/unix/clock_settime.c:50: warning: implicit declaration of function `__get_clockfreq'
../linuxthreads/sysdeps/i386/i586/ptclock_gettime.c:27: warning: no previous prototype for `__pthread_clock_gettime'
The first is fixed with the appended patch that I've just committed.
But what's the best way to fix the second? __pthread_clock_gettime is
used only as weak declaration in sysdeps/unix/i386/i586/clock_gettime.c.
Andreas
2001-04-21 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/i386/i586/clock_settime.c: Include
"libc-internal.h" for __get_clockfreq declaration.
============================================================
Index: sysdeps/unix/i386/i586/clock_settime.c
--- sysdeps/unix/i386/i586/clock_settime.c 2001/04/21 07:43:02 1.1
+++ sysdeps/unix/i386/i586/clock_settime.c 2001/04/21 16:20:15
@@ -19,7 +19,7 @@
#include <time.h>
#include "cpuclock-init.h"
-
+#include "libc-internal.h"
/* This implementation uses the TSC register in modern (i586 and up) IA-32
processors (most modern clones also provide it). Since we need the
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list