Skip to contentSkip to conversation

timerfd_create: Include time.h instead of sys/timerfd.h.

PATCH New Vinson Lee 1 participant 1 message Aug 23, 2013

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

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)

---
 syscalls/timerfd_create.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
syscalls/timerfd_create.c +1 -1
index d6b291a..92caaa4 100644
@@ -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