summaryrefslogtreecommitdiff
path: root/core/pam/pam_unix2-glibc216.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
committerroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
commit99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (patch)
tree8b24758dfa8c691cda33acaa931699ce81dc1c15 /core/pam/pam_unix2-glibc216.patch
parente9dd04abd0ede1143ea4af10059e37c2f599e1fd (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.patch20
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"
+