Module: xenomai-forge
Branch: next
Commit: f34c1025ee267c67dbc9f1ad8c1bc333a6dc3641
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=f34c1025ee267c67dbc9f1ad8c1bc333a6dc3641

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jul  1 09:07:53 2014 +0200

testsuite/regression: provide TFD_NONBLOCK with outdated toolchains

---

 testsuite/regression/posix/timerfd.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/regression/posix/timerfd.c 
b/testsuite/regression/posix/timerfd.c
index 6e9e0c1..086db62 100644
--- a/testsuite/regression/posix/timerfd.c
+++ b/testsuite/regression/posix/timerfd.c
@@ -26,9 +26,14 @@
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
+#include <fcntl.h>
 #include <sys/timerfd.h>
 #include "check.h"
 
+#ifndef TFD_NONBLOCK
+#define TFD_NONBLOCK O_NONBLOCK
+#endif
+
 static void timerfd_basic_check(void)
 {
        struct itimerspec its;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to