Commits

Anonymous committed 992aaf5

core: don't compile clock functions if POSIX_TIMERS isn't set

  • Participants
  • Parent commits a6646db

Comments (0)

Files changed (1)

File base/core/lib/unix_stubs.c

   return pthread_self();
 }
 
+/* Clock functions */
+
+#ifdef JSC_POSIX_TIMERS
+#define clockid_t_val(v_cl) ((clockid_t) Nativeint_val(v_cl))
+
 CAMLprim value unix_pthread_getcpuclockid(value v_tid)
 {
   clockid_t c;
   return caml_copy_nativeint(CLOCK_THREAD_CPUTIME_ID);
 }
 
-/* Clock functions */
-
-#ifdef JSC_POSIX_TIMERS
-#define clockid_t_val(v_cl) ((clockid_t) Nativeint_val(v_cl))
-
 CAMLprim value unix_clock_gettime(value v_cl)
 {
   struct timespec ts;