patches/scim-tables-01-munmap.diff
changeset 355 b514f0d94f47
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/scim-tables-01-munmap.diff	Sat Jul 28 09:07:54 2007 +0000
@@ -0,0 +1,20 @@
+--- scim-tables-0.5.7/src/scim_generic_table.cpp.orig	2007-07-28 09:51:52.724381497 +0700
++++ scim-tables-0.5.7/src/scim_generic_table.cpp	2007-07-28 09:53:02.539863738 +0700
+@@ -902,7 +902,7 @@
+ GenericTableContent::~GenericTableContent ()
+ {
+     if (m_mmapped) {
+-        munmap (m_mmapped_ptr, m_mmapped_size);
++        munmap ((char *)m_mmapped_ptr, m_mmapped_size);
+     } else if (m_content) {
+         delete [] m_content;
+     }
+@@ -1548,7 +1548,7 @@
+ GenericTableContent::clear ()
+ {
+     if (m_mmapped) {
+-        munmap (m_mmapped_ptr, m_mmapped_size);
++        munmap ((char *)m_mmapped_ptr, m_mmapped_size);
+     } else if (m_content) {
+         delete [] m_content;
+     }