[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

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 <vlee@xxxxxxxxxxx>
---
 syscalls/timerfd_create.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/syscalls/timerfd_create.c b/syscalls/timerfd_create.c
index d6b291a..92caaa4 100644
--- a/syscalls/timerfd_create.c
+++ b/syscalls/timerfd_create.c
@@ -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"
 
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux