File openssl-1_0_0-fix-removal-of-termio.patch of Package openssl-1_0_0
diff -Naru openssl-1.0.2u_orig/crypto/des/read_pwd.c openssl-1.0.2u/crypto/des/read_pwd.c --- openssl-1.0.2u_orig/crypto/des/read_pwd.c 2019-12-20 22:02:41.000000000 +0900 +++ openssl-1.0.2u/crypto/des/read_pwd.c 2025-09-09 11:59:28.107392821 +0900 @@ -153,8 +153,10 @@ #endif #ifdef TERMIO -# include <termio.h> -# define TTY_STRUCT struct termio +// replaced with termios.h / sys/ioctl.h because termio.h only contains them for a long time +# include <termios.h> +# include <sys/ioctl.h> +# define TTY_STRUCT struct termios # define TTY_FLAGS c_lflag # define TTY_get(tty,data) ioctl(tty,TCGETA,data) # define TTY_set(tty,data) ioctl(tty,TCSETA,data) diff -Naru openssl-1.0.2u_orig/crypto/ui/ui_openssl.c openssl-1.0.2u/crypto/ui/ui_openssl.c --- openssl-1.0.2u_orig/crypto/ui/ui_openssl.c 2019-12-20 22:02:41.000000000 +0900 +++ openssl-1.0.2u/crypto/ui/ui_openssl.c 2025-09-09 11:58:09.795171376 +0900 @@ -227,8 +227,10 @@ #endif #ifdef TERMIO -# include <termio.h> -# define TTY_STRUCT struct termio +// replaced with termios.h / sys/ioctl.h because termio.h only contains them for a long time +# include <termios.h> +# include <sys/ioctl.h> +# define TTY_STRUCT struct termios # define TTY_FLAGS c_lflag # define TTY_get(tty,data) ioctl(tty,TCGETA,data) # define TTY_set(tty,data) ioctl(tty,TCSETA,data)