1 |
pacho 13/11/25 20:48:27 |
2 |
|
3 |
Added: libxcrypt-2.4-glibc-2.16.patch |
4 |
Log: |
5 |
Fix building against glibc-2.16 (#429656 by Mario Fetka (geos_one) and Christian Hagau) |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libxcrypt/files/libxcrypt-2.4-glibc-2.16.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: libxcrypt-2.4-glibc-2.16.patch |
16 |
=================================================================== |
17 |
diff -urN libxcrypt-3.0.2/src/crypt_util.c libxcrypt-3.0.2.new/src/crypt_util.c |
18 |
--- libxcrypt-3.0.2/src/crypt_util.c 2007-10-25 15:17:46.000000000 +0200 |
19 |
+++ libxcrypt-3.0.2.new/src/crypt_util.c 2013-02-04 12:45:20.560191479 +0100 |
20 |
@@ -30,8 +30,7 @@ |
21 |
#endif |
22 |
#include <string.h> |
23 |
|
24 |
-#include <bits/libc-lock.h> |
25 |
-#define __libc_lock_t pthread_mutex_t |
26 |
+#include <pthread.h> |
27 |
|
28 |
#ifndef STATIC |
29 |
#define STATIC static |
30 |
@@ -265,7 +264,7 @@ |
31 |
*/ |
32 |
struct crypt_data _ufc_foobar; |
33 |
|
34 |
-__libc_lock_define_initialized (static, _ufc_tables_lock) |
35 |
+static pthread_mutex_t _ufc_tables_lock = PTHREAD_MUTEX_INITIALIZER; |
36 |
|
37 |
#ifdef DEBUG |
38 |
|
39 |
@@ -362,7 +361,7 @@ |
40 |
#endif |
41 |
|
42 |
if(small_tables_initialized == 0) { |
43 |
- __libc_lock_lock (_ufc_tables_lock); |
44 |
+ pthread_mutex_lock (&_ufc_tables_lock); |
45 |
if(small_tables_initialized) |
46 |
goto small_tables_done; |
47 |
|
48 |
@@ -471,7 +470,7 @@ |
49 |
} |
50 |
small_tables_initialized = 1; |
51 |
small_tables_done: |
52 |
- __libc_lock_unlock(_ufc_tables_lock); |
53 |
+ pthread_mutex_unlock (&_ufc_tables_lock); |
54 |
} |
55 |
|
56 |
/* |