Projects : bitcoin : bitcoin_permissive_mode
1 | http://rt.openssl.org/Ticket/Display.html?id=3123 |
2 | |
3 | From: Kevin Bortis <pkgs@bortis.ch> |
4 | |
5 | The attached patch fixes issues with musl libc on linux. musl does |
6 | implement the POSIX 2008 standard termios.h on linux and does not |
7 | include the non standard interface termio.h. |
8 | |
9 | The problem with dlinfo does no longer exists, since musl has |
10 | implemented the required interface. |
11 | |
12 | This closes #2823 for me. |
13 | |
14 | Tested version: |
15 | musl libc: 0.9.13 |
16 | openssl git: 1769dfab06dcf93a1c310ca7ea9531afcc448d0a |
17 | |
18 | Comparison of termios.h implementation on linux: |
19 | |
20 | glibc 2.17: does implement termios.h, passes make test |
21 | musl 0.9.13: does implement termios.h, passes make test |
22 | uClibc 0.9.33.2: does implement termios.h, not tested |
23 | dietlibc 0.33: does implement termios.h, not tested |
24 | |
25 | I don't know the reason why termio.h is prefered on linux, since |
26 | termios.h is generally prefered and implemented by all major libc |
27 | implementations. |
28 | |
29 | Regards |
30 | Kevin |
31 | |
32 | --- a/crypto/ui/ui_openssl.c 2013-09-08 11:00:10.130572803 +0200 |
33 | +++ b/crypto/ui/ui_openssl.c 2013-09-08 11:29:35.806580447 +0200 |
34 | @@ -190,9 +190,9 @@ |
35 | # undef SGTTY |
36 | #endif |
37 | |
38 | -#if defined(linux) && !defined(TERMIO) |
39 | -# undef TERMIOS |
40 | -# define TERMIO |
41 | +#if defined(linux) |
42 | +# define TERMIOS |
43 | +# undef TERMIO |
44 | # undef SGTTY |
45 | #endif |
46 |