These are available on any non-ancient system by now so it’s safe
to drop them.
#include <unistd.h>
#include <string.h>
#include <sys/timeb.h>
-#include <sys/syscall.h>
#include <timefunc.hxx>
#include <i18n.h>
bool monotonic_clock_gettime(long int& seconds, long int& nano_seconds)
{
struct timespec tp[1];
- int res= ::syscall(__NR_clock_gettime, CLOCK_MONOTONIC, tp);
+ int res= clock_gettime (CLOCK_MONOTONIC, tp);
if (0 == res)
{
seconds= tp->tv_sec;
bool realtime_clock_gettime(long int& seconds, long int& nano_seconds)
{
struct timespec tp[1];
- int res= ::syscall(__NR_clock_gettime, CLOCK_REALTIME, tp);
+ int res= clock_gettime(CLOCK_REALTIME, tp);
if (0 == res)
{
seconds= tp->tv_sec;