File openssl-1_1-fix-removal-of-termio.patch of Package openssl-1_1

diff -Naru openssl-1.1.1w_orig/crypto/ui/ui_openssl.c openssl-1.1.1w/crypto/ui/ui_openssl.c
--- openssl-1.1.1w_orig/crypto/ui/ui_openssl.c	2023-09-11 23:08:11.000000000 +0900
+++ openssl-1.1.1w/crypto/ui/ui_openssl.c	2025-09-09 13:01:50.032461248 +0900
@@ -116,8 +116,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
+#  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)
openSUSE Build Service is sponsored by