diff options
author | root <root@rshg054.dnsready.net> | 2012-10-16 00:33:10 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-16 00:33:10 -0700 |
commit | 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (patch) | |
tree | 8b24758dfa8c691cda33acaa931699ce81dc1c15 /core/pam/pam_unix2-glibc216.patch | |
parent | e9dd04abd0ede1143ea4af10059e37c2f599e1fd (diff) |
Tue Oct 16 00:33:08 PDT 2012
Diffstat (limited to 'core/pam/pam_unix2-glibc216.patch')
-rw-r--r-- | core/pam/pam_unix2-glibc216.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/pam/pam_unix2-glibc216.patch b/core/pam/pam_unix2-glibc216.patch new file mode 100644 index 000000000..faa6a235f --- /dev/null +++ b/core/pam/pam_unix2-glibc216.patch @@ -0,0 +1,20 @@ +Index: pam_unix2-2.9.1/src/read-files.c +=================================================================== +--- pam_unix2-2.9.1.orig/src/read-files.c ++++ pam_unix2-2.9.1/src/read-files.c +@@ -30,8 +30,14 @@ + #include <errno.h> + #include <fcntl.h> + #include <nss.h> +-#include <bits/libc-lock.h> ++#include <pthread.h> + #define __libc_lock_t pthread_mutex_t ++#define __libc_lock_define_initialized(CLASS,NAME) \ ++ CLASS __libc_lock_t NAME = PTHREAD_MUTEX_INITIALIZER; ++#define __libc_lock_lock(NAME) \ ++ pthread_mutex_lock, (&(NAME)) ++#define __libc_lock_unlock(NAME) \ ++ pthread_mutex_unlock, (&(NAME)) + + #include "read-files.h" + |