]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - time/clocktest.c
y2038: Export __clock_gettime64 to be usable in other libraries
[thirdparty/glibc.git] / time / clocktest.c
index 2e6457d56a6b74e7eb180353515a6c6fa15a5d17..779c05d8d95a14fcb074ba8810fbf90b26cf1229 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 
 volatile int gotit = 0;
 
@@ -30,7 +31,7 @@ main (int argc, char ** argv)
 
   printf ("%jd clock ticks per second (start=%jd,stop=%jd)\n",
          (intmax_t) (stop - start), (intmax_t) start, (intmax_t) stop);
-  printf ("CLOCKS_PER_SEC=%ld, sysconf(_SC_CLK_TCK)=%ld\n",
-         CLOCKS_PER_SEC, sysconf(_SC_CLK_TCK));
+  printf ("CLOCKS_PER_SEC=%jd, sysconf(_SC_CLK_TCK)=%ld\n",
+         (intmax_t) CLOCKS_PER_SEC, sysconf(_SC_CLK_TCK));
   return 0;
 }