summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Austad <haustad@cisco.com>2015-10-21 21:00:11 +0200
committerJohn Kacur <jkacur@redhat.com>2015-10-22 11:42:18 +0200
commit70744ebc7155eacc87f01a150519ea18baa1daed (patch)
tree301ca86fd229eb3c9a7bc3cd232ce9eac3fec939
parentb0a075980bc1495a443f5e11f6d49dcde282ae10 (diff)
downloadrt-tests-70744ebc7155eacc87f01a150519ea18baa1daed.tar.gz
rt-sched.h: do not unconditionally define syscall-numbers
These could be defined elsewhere, be careful when defining these Cc: John Kacur <jkacur@redhat.com> Signed-off-by: Henrik Austad <haustad@cisco.com> Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/include/rt-sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/rt-sched.h b/src/include/rt-sched.h
index b46b1b1..679c4bd 100644
--- a/src/include/rt-sched.h
+++ b/src/include/rt-sched.h
@@ -43,9 +43,13 @@
#endif
#ifdef __arm__
+#ifndef __NR_sched_setattr
#define __NR_sched_setattr 380
+#endif
+#ifndef __NR_sched_getattr
#define __NR_sched_getattr 381
#endif
+#endif
#ifdef __tilegx__
#define __NR_sched_setattr 274