@@ -42,7 +42,6 @@
#define __NR_sched_getattr 275
#endif
-#if ! __GLIBC_PREREQ(2, 41)
struct sched_attr {
uint32_t size;
uint32_t sched_policy;
@@ -68,6 +67,5 @@ int sched_getattr(pid_t pid,
struct sched_attr *attr,
unsigned int size,
unsigned int flags);
-#endif
#endif /* __RT_SCHED_H__ */
@@ -14,7 +14,6 @@
#include "rt-sched.h"
-#if ! __GLIBC_PREREQ(2, 41)
int sched_setattr(pid_t pid,
const struct sched_attr *attr,
unsigned int flags)
@@ -29,4 +28,3 @@ int sched_getattr(pid_t pid,
{
return syscall(__NR_sched_getattr, pid, attr, size, flags);
}
-#endif
This reverts commit d3a23a0cc76789c3083df3bad78982cd49bc4c5e. When people backport the feature into earlier versions of glibc, then the patches fails. Signed-off-by: John Kacur <jkacur@redhat.com> --- src/include/rt-sched.h | 2 -- src/lib/rt-sched.c | 2 -- 2 files changed, 4 deletions(-)