[gpm]I: [PATCH] restored fields order in struct Gpm_Event to avoid ABI change
Dmitry V. Levin
ldv@altlinux.org
Wed, 17 Jul 2002 18:38:40 +0400
--TybLhxa8M7aNoW+V
Content-Type: multipart/mixed; boundary="UPT3ojh+0CqEDtpF"
Content-Disposition: inline
--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Greetings!
gpm-1.20.1rc1 introduces (undocumented) ABI change:
two fields (short wdx, wdy) was added in the middle of the structure.
I strongly suggest to move new fields to the end of the structure
rather than change library soname (patch attached).
--
ldv
--UPT3ojh+0CqEDtpF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gpm-1.20.1rc1-alt-fix_abi.patch"
2002-07-17 Dmitry V. Levin <ldv@altlinux.org>
* bugfix: restored fields order in struct Gpm_Event to avoid
ABI change.
--- gpm-1.20.1rc1.orig/src/headers/gpm.h 2002-07-17 18:02:15 +0400
+++ gpm-1.20.1rc1/src/headers/gpm.h 2002-07-17 18:02:47 +0400
@@ -123,10 +123,10 @@
unsigned char buttons, modifiers; /* try to be a multiple of 4 */
unsigned short vc;
short dx, dy, x, y;
- short wdx, wdy;
enum Gpm_Etype type;
int clicks;
enum Gpm_Margin margin;
+ short wdx, wdy;
} Gpm_Event;
/*....................................... The handling function */
--UPT3ojh+0CqEDtpF--
--TybLhxa8M7aNoW+V
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9NYFv9viEa8HiNCkRAjvsAJ43l+N/uXJ3cWnzFP6FiG2JtOC/WQCcCY/9
/6R3tkiWIgc7EcC++/b+lOM=
=ZzVM
-----END PGP SIGNATURE-----
--TybLhxa8M7aNoW+V--