diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-09 21:14:03 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-09 21:14:03 -0400 |
commit | 61da553103205ed0ea432def3cdafbe9d09f0ab7 (patch) | |
tree | 9b747b72b5f0fc8dfd376dec43f4158ca69842a4 /libre/pam/pam_unix2-glibc216.patch | |
parent | b7a1f811bf9e3ef00caeb8228a64e480a1520841 (diff) | |
download | abslibre-61da553103205ed0ea432def3cdafbe9d09f0ab7.tar.gz abslibre-61da553103205ed0ea432def3cdafbe9d09f0ab7.tar.bz2 abslibre-61da553103205ed0ea432def3cdafbe9d09f0ab7.zip |
libre/pam: Import from Arch Linux 32
Diffstat (limited to 'libre/pam/pam_unix2-glibc216.patch')
-rw-r--r-- | libre/pam/pam_unix2-glibc216.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libre/pam/pam_unix2-glibc216.patch b/libre/pam/pam_unix2-glibc216.patch new file mode 100644 index 000000000..faa6a235f --- /dev/null +++ b/libre/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" + |