Hello,
when building ltp on 2.6.24 kernel, the timerfd test failed to build. This is
caused by NR_timerfd being defined without NR_timerfd_create, because the test
checks for NR_timerfd, but uses NR_timerfd_create. The attached patch should
fix that.
Regards
Jiri Palecek
From cf3952c6f6668ee1fc1e56781c0b493c4ead21bc Mon Sep 17 00:00:00 2001
From: Jiri Palecek <[EMAIL PROTECTED](none)>
Date: Sun, 21 Sep 2008 13:50:10 +0200
Subject: [PATCH] Correct the condition of compiling the timerfd test; should fix FTBFS with some kernel versions
---
testcases/kernel/syscalls/timerfd/timerfd01.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/syscalls/timerfd/timerfd01.c b/testcases/kernel/syscalls/timerfd/timerfd01.c
index c1433bc..da3b6a0 100644
--- a/testcases/kernel/syscalls/timerfd/timerfd01.c
+++ b/testcases/kernel/syscalls/timerfd/timerfd01.c
@@ -51,8 +51,12 @@ extern int Tst_count; /* Test Case counter for tst_* routines */
/*
* This were good at the time of 2.6.23-rc7 ...
+ *
+ * #ifdef __NR_timerfd
+ *
+ * ... but is not now with 2.6.25
*/
-#ifdef __NR_timerfd
+#ifdef __NR_timerfd_create
/* Definitions from include/linux/timerfd.h */
#define TFD_TIMER_ABSTIME (1 << 0)
--
1.5.6.5
Signed-off-by: Jiri Palecek <[EMAIL PROTECTED]>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list