]> git.pld-linux.org Git - packages/php.git/blob - crypt.patch
- rel 27 (libvpx 1.14)
[packages/php.git] / crypt.patch
1 --- php-5.6.40/configure.in~    2024-03-13 20:25:10.000000000 +0100
2 +++ php-5.6.40/configure.in     2024-03-13 20:36:57.496650674 +0100
3 @@ -610,7 +610,6 @@ asctime_r \
4  chroot \
5  ctime_r \
6  cuserid \
7 -crypt \
8  flock \
9  ftok \
10  funopen \
11 @@ -689,6 +688,11 @@ asprintf \
12  nanosleep \
13  )
14  
15 +AC_SEARCH_LIBS([crypt], [crypt], [
16 +               LIBS="$LIBS -lcrypt"
17 +               AC_DEFINE(HAVE_CRYPT, 1, [ ])
18 +               ])
19 +
20  dnl Some systems (like OpenSolaris) do not have nanosleep in libc
21  PHP_CHECK_FUNC_LIB(nanosleep, rt)
22  
23 @@ -757,7 +761,7 @@ PHP_TIME_R_TYPE
24  PHP_READDIR_R_TYPE
25  PHP_CHECK_IN_ADDR_T
26  
27 -AC_CHECK_FUNCS(crypt_r, [ php_crypt_r="1" ], [ php_crypt_r="0" ])
28 +AC_SEARCH_LIBS(crypt_r, crypt, [ php_crypt_r="1" ], [ php_crypt_r="0" ])
29  if test "x$php_crypt_r" = "x1"; then
30    PHP_CRYPT_R_STYLE
31  fi
32 --- php-5.6.40/ext/standard/config.m4~  2019-01-09 10:54:13.000000000 +0100
33 +++ php-5.6.40/ext/standard/config.m4   2024-03-13 21:03:19.596650607 +0100
34 @@ -69,6 +69,8 @@ AC_CACHE_CHECK(for standard DES crypt, a
35  #include <crypt.h>
36  #endif
37  
38 +#include <stdlib.h>
39 +
40  int main() {
41  #if HAVE_CRYPT
42         char *encrypted = crypt("rasmuslerdorf","rl");
43 @@ -94,6 +96,8 @@ AC_CACHE_CHECK(for extended DES crypt, a
44  #include <crypt.h>
45  #endif
46  
47 +#include <stdlib.h>
48 +
49  int main() {
50  #if HAVE_CRYPT
51         char *encrypted = crypt("rasmuslerdorf","_J9..rasm");
52 @@ -119,6 +123,8 @@ AC_TRY_RUN([
53  #include <crypt.h>
54  #endif
55  
56 +#include <stdlib.h>
57 +
58  int main() {
59  #if HAVE_CRYPT
60         char salt[15], answer[40];
61 @@ -154,6 +160,8 @@ AC_TRY_RUN([
62  #include <crypt.h>
63  #endif
64  
65 +#include <stdlib.h>
66 +
67  int main() {
68  #if HAVE_CRYPT
69         char salt[30], answer[70];
70 @@ -186,6 +194,8 @@ AC_TRY_RUN([
71  #include <crypt.h>
72  #endif
73  
74 +#include <stdlib.h>
75 +
76  int main() {
77  #if HAVE_CRYPT
78         char salt[21], answer[21+86];
79 @@ -217,6 +227,8 @@ AC_TRY_RUN([
80  #include <crypt.h>
81  #endif
82  
83 +#include <stdlib.h>
84 +
85  int main() {
86  #if HAVE_CRYPT
87         char salt[21], answer[21+43];
This page took 0.039747 seconds and 3 git commands to generate.