Detected when trying to compile Xenomai on a 32bit system using latest
glibc release (2.34) without running autoreconf to regenerate
xeno_config.h.

The signature of _setrobust was mixed with the signature of _getrobust.

Updates https://gitlab.com/Xenomai/xenomai-hacker-space/-/issues/31

Signed-off-by: Florian Bezdeka <florian.bezd...@siemens.com>
---
 include/boilerplate/libc.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/boilerplate/libc.h b/include/boilerplate/libc.h
index 797e377a2..071cdf321 100644
--- a/include/boilerplate/libc.h
+++ b/include/boilerplate/libc.h
@@ -247,9 +247,8 @@ __weak int shm_unlink(const char *name)
 #ifdef HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP
 #define pthread_mutexattr_setrobust    pthread_mutexattr_setrobust_np
 #else
-static inline
-int pthread_mutexattr_setrobust(const pthread_mutexattr_t *attr,
-                               int *robustness)
+inline int pthread_mutexattr_setrobust(pthread_mutexattr_t *attr,
+                                      int robustness)
 {
        return ENOSYS;
 }
-- 
2.30.2


Reply via email to