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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This reverts commit d3a23a0cc76789c3083df3bad78982cd49bc4c5e.

When people backport the feature into earlier versions of glibc, then
the patches fails.

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
 src/include/rt-sched.h | 2 --
 src/lib/rt-sched.c     | 2 --
 2 files changed, 4 deletions(-)

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
-- 
2.49.0





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux