Subject: allow tweeking p_malloc alignment (needed for ia64)
Author: Thibaut Paumard <paumard@users.sourceforge.net>
Bug: http://yorick.sourceforge.net/phpBB3/viewtopic.php?t=374
Bug-Debian: 
Forwarded: yes

ia64 requires 16-byte alignment which is not provided by yorick's
p_malloc. This causes e.g. png_read and png_write from yorick-z to
fail with SIGBUS.


Index: yorick-2.2.02+dfsg/play/any/mminit.c
===================================================================
--- yorick-2.2.02+dfsg.orig/play/any/mminit.c	2012-04-15 10:28:11.000000000 +0000
+++ yorick-2.2.02+dfsg/play/any/mminit.c	2012-06-20 13:39:55.000000000 +0000
@@ -18,6 +18,9 @@
 typedef union mm_block mm_block;
 typedef struct mm_arena mm_arena;
 
+#ifndef MM_MIN_ALIGNMENT
+# define MM_MIN_ALIGNMENT 1
+#endif
 union mm_block {
   mm_block *next_free;  /* when not in use */
   mm_arena *arena;      /* when in use */
@@ -25,6 +28,7 @@
   long l;
   double d;   /* long double tickles bug for linux gcc 2.7.2 */
   void (*f)(void);
+  char c[MM_MIN_ALIGNMENT];
 };
 
 #ifndef P_DEBUG
