Skip to content

Commit

Permalink
Merge pull request #174 from 20kdc/patch-1
Browse files Browse the repository at this point in the history
Remove use of pthread_mutexattr_setkind_np due to compile errors on newer Linux distributions
  • Loading branch information
ardovm authored Mar 18, 2023
2 parents 2b2585a + 02cabb0 commit 4cacfcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/sal/osl/unx/mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
#include <stdlib.h>

#if defined LINUX /* bad hack */
#if !defined(__USE_XOPEN2K8)
int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int);
#define pthread_mutexattr_settype pthread_mutexattr_setkind_np
#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
#endif
#endif

/*
Implementation notes:
Expand Down

0 comments on commit 4cacfcd

Please sign in to comment.