Projects : bitcoin : bitcoin_tx_fee_cleanup

bitcoin/deps/openssl-004-musl-termios.patch

Dir - Raw

1http://rt.openssl.org/Ticket/Display.html?id=3123
2
3From: Kevin Bortis <pkgs@bortis.ch>
4
5The attached patch fixes issues with musl libc on linux. musl does
6implement the POSIX 2008 standard termios.h on linux and does not
7include the non standard interface termio.h.
8
9The problem with dlinfo does no longer exists, since musl has
10implemented the required interface.
11
12This closes #2823 for me.
13
14Tested version:
15musl libc: 0.9.13
16openssl git: 1769dfab06dcf93a1c310ca7ea9531afcc448d0a
17
18Comparison of termios.h implementation on linux:
19
20glibc 2.17: does implement termios.h, passes make test
21musl 0.9.13: does implement termios.h, passes make test
22uClibc 0.9.33.2: does implement termios.h, not tested
23dietlibc 0.33: does implement termios.h, not tested
24
25I don't know the reason why termio.h is prefered on linux, since
26termios.h is generally prefered and implemented by all major libc
27implementations.
28
29Regards
30Kevin
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