timerfd_create: Include time.h instead of sys/timerfd.h.
PATCH 1/1 timerfd_create: Include time.h instead of sys/timerfd.h.
From: Vinson Lee <[email protected]>
This patch fixes these build errors with glibc before 2.8.
syscalls/timerfd_create.c:4:25: error: sys/timerfd.h: No such file or directory syscalls/timerfd_create.c:15: error: ‘CLOCK_REALTIME’ undeclared here (not in a function) syscalls/timerfd_create.c:15: error: ‘CLOCK_MONOTONIC’ undeclared here (not in a function)
Signed-off-by Vinson Lee <[email protected]>
--- syscalls/timerfd_create.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
syscalls/timerfd_create.c +1 -1
@@ -1,7 +1,7 @@/* * SYSCALL_DEFINE2(timerfd_create, int, clockid, int, flags) */ -#include <sys/timerfd.h> +#include <time.h> #include "sanitise.h" #include "compat.h"
Signature · 1 line
1.7.4.1