logrotate: fix build with gcc 6
[buildroot-gz.git] / package / rt-tests / 0003-Add-syscall-number-for-sched_-gs-etattr-for-SH4.patch
blob9d606a4dfdffb9199dcf7d4df09341d188833e83
1 From 53c7e8bc75f0f27752309ddae49e8d3b867a7681 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@gmail.com>
3 Date: Mon, 15 Aug 2016 18:20:47 +0200
4 Subject: [PATCH] Add syscall-number for sched_(gs)etattr() for SH4
6 Signed-off-by: Romain Naour <romain.naour@gmail.com>
7 ---
8 src/include/rt-sched.h | 10 ++++++++++
9 1 file changed, 10 insertions(+)
11 diff --git a/src/include/rt-sched.h b/src/include/rt-sched.h
12 index 679c4bd..83394c6 100644
13 --- a/src/include/rt-sched.h
14 +++ b/src/include/rt-sched.h
15 @@ -51,6 +51,16 @@
16 #endif
17 #endif
19 +/* SCHED_DEADLINE available on sh4 since kernel 4.8 */
20 +#ifdef __SH4__
21 +#ifndef __NR_sched_setattr
22 +#define __NR_sched_setattr 370
23 +#endif
24 +#ifndef __NR_sched_getattr
25 +#define __NR_sched_getattr 369
26 +#endif
27 +#endif
29 #ifdef __tilegx__
30 #define __NR_sched_setattr 274
31 #define __NR_sched_getattr 275
32 --
33 2.5.5