summaryrefslogtreecommitdiff
path: root/gpm-1.20.1-weak-wgetch.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:17:39 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:17:39 +0000
commit9d5165866832c84d122aefd4ecf4f244a58a1568 (patch)
tree2744509894b854661a2563e05a425bfd535f0e0e /gpm-1.20.1-weak-wgetch.patch
parent38bccab72afcaa731ea88a9beb69caf667f31762 (diff)
automatic import of gpmopeneuler24.03_LTS
Diffstat (limited to 'gpm-1.20.1-weak-wgetch.patch')
-rw-r--r--gpm-1.20.1-weak-wgetch.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/gpm-1.20.1-weak-wgetch.patch b/gpm-1.20.1-weak-wgetch.patch
new file mode 100644
index 0000000..e1901a6
--- /dev/null
+++ b/gpm-1.20.1-weak-wgetch.patch
@@ -0,0 +1,26 @@
+--- gpm-1.20.1/src/lib/libcurses.c.weak-wgetch 2002-12-24 17:57:16.000000000 -0500
++++ gpm-1.20.1/src/lib/libcurses.c 2004-03-22 15:51:24.000000000 -0500
+@@ -41,7 +41,12 @@
+ #endif /* HAVE_NCURSES_CURSES_H */
+ #endif /* HAVE_NCURSES_H */
+
+-#define GET(win) ((win) ? wgetch(win) : getch())
++/* If win != NULL, it must have been created by ncurses anyway.
++ Avoid circular library dependencies. */
++#pragma weak wgetch
++#pragma weak stdscr
++
++#define GET(win) ((win && wgetch) ? wgetch(win) : getch())
+
+ int Gpm_Wgetch(WINDOW *win)
+ {
+--- gpm-1.20.1/configure.ac.weak-wgetch 2004-03-22 15:49:51.000000000 -0500
++++ gpm-1.20.1/configure.ac.footer 2004-03-22 15:51:24.000000000 -0500
+@@ -115,7 +115,7 @@
+ AC_CHECK_LIB($i, wgetch,,,$TERMLIBS)
+ else :; fi
+ done
+- SHARED_LIBS="$LIBS $TERMLIBS -lc"
++ SHARED_LIBS="-lc"
+ LIBS=$SAVELIBS ;;
+ esac