diff mbox series

[2/5] Revert "Fix rt-tests build with glibc-2.41"

Message ID 20250424204843.79193-2-jkacur@redhat.com
State New
Headers show
Series [1/5] rt-tests: cyclicdeadline: Fix usage for duration | expand

Commit Message

John Kacur April 24, 2025, 8:48 p.m. UTC
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(-)
diff mbox series

Patch

diff --git a/src/include/rt-sched.h b/src/include/rt-sched.h
index dfd7f45f51cc..80171c76e0ee 100644
--- a/src/include/rt-sched.h
+++ b/src/include/rt-sched.h
@@ -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__ */
diff --git a/src/lib/rt-sched.c b/src/lib/rt-sched.c
index 2500abde26e4..8023bc70c473 100644
--- a/src/lib/rt-sched.c
+++ b/src/lib/rt-sched.c
@@ -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