Message ID | 20250424204843.79193-3-jkacur@redhat.com |
---|---|
State | New |
Headers | show |
Series | [1/5] rt-tests: cyclicdeadline: Fix usage for duration | expand |
diff --git a/src/include/rt-sched.h b/src/include/rt-sched.h index 80171c76e0ee..9cf0e3a937e5 100644 --- a/src/include/rt-sched.h +++ b/src/include/rt-sched.h @@ -42,6 +42,8 @@ #define __NR_sched_getattr 275 #endif +/* sched_attr is not defined in glibc < 2.41 */ +#ifndef SCHED_ATTR_SIZE_VER0 struct sched_attr { uint32_t size; uint32_t sched_policy; @@ -68,4 +70,6 @@ int sched_getattr(pid_t pid, unsigned int size, unsigned int flags); +#endif /* SCHED_ATTR_SIZE_VER0 */ + #endif /* __RT_SCHED_H__ */