Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37760393
en ru br
ALT Linux repos
S:6.3.20220618-alt4
5.0: 5.7-alt1
4.1: 5.6-alt4
4.0: 5.6-alt3
3.0: 5.4.20050108-alt3

Group :: System/Base
RPM: ncurses

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ncurses-5.4-alt-nogpm-dlopen.patch
Download


diff -Naur ncurses-5.4/ncurses/base/lib_mouse.c ncurses-5.4.new/ncurses/base/lib_mouse.c
--- ncurses-5.4/ncurses/base/lib_mouse.c	2005-02-14 13:02:36 +0300
+++ ncurses-5.4.new/ncurses/base/lib_mouse.c	2005-02-14 13:02:08 +0300
@@ -155,10 +155,17 @@
 typedef int (*TYPE_Gpm_Close) (void);
 typedef int (*TYPE_Gpm_GetEvent) (Gpm_Event *);
 
+#if 0
 static TYPE_gpm_fd my_gpm_fd;
 static TYPE_Gpm_Open my_Gpm_Open;
 static TYPE_Gpm_Close my_Gpm_Close;
 static TYPE_Gpm_GetEvent my_Gpm_GetEvent;
+#else
+#define my_gpm_fd gpm_fd
+#define my_Gpm_Open Gpm_Open
+#define my_Gpm_Close Gpm_Close
+#define my_Gpm_GetEvent Gpm_GetEvent
+#endif
 
 #endif /* LINT */
 #endif /* USE_GPM_SUPPORT */
@@ -424,6 +431,7 @@
     /* Try gpm first, because gpm may be configured to run in xterm */
 #if USE_GPM_SUPPORT
     if (allow_gpm_mouse()) {
+#if 0
 	static bool first = TRUE;
 	static bool found = FALSE;
 
@@ -443,6 +451,9 @@
 		}
 	    }
 	}
+#else
+	static bool found = TRUE;
+#endif
 
 	/*
 	 * The gpm_fd file-descriptor may be negative (xterm).  So we have to
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin