return res;
}
-int gettimeofday(struct timeval* tv, void* tz)
+#if !defined(__GLIBC__) || __GLIBC_PREREQ(2, 31)
+int gettimeofday(struct timeval* tv, XBT_ATTRIB_UNUSED void* tz)
+#else
+int gettimeofday(struct timeval* tv, XBT_ATTRIB_UNUSED struct timezone* tz)
+#endif
{
- return sthread_gettimeofday(tv, tz);
+ return sthread_gettimeofday(tv);
}
unsigned int sleep(unsigned int seconds)
int sthread_mutex_unlock(sthread_mutex_t* mutex);
int sthread_mutex_destroy(sthread_mutex_t* mutex);
-int sthread_gettimeofday(struct timeval* tv, struct timezone* tz);
+int sthread_gettimeofday(struct timeval* tv);
void sthread_sleep(double seconds);
#if defined(__cplusplus)
}
#endif
-#endif
\ No newline at end of file
+#endif
return 0;
}
-int sthread_gettimeofday(struct timeval* tv, struct timezone* tz)
+int sthread_gettimeofday(struct timeval* tv)
{
if (tv) {
double now = simgrid::s4u::Engine::get_clock();