openbsd-ports/x11/mplayer/patches/patch-m_config_h
biorn b718e5ab1f update to 1.0pre5
ok pvalchev@
2004-10-18 06:48:08 +00:00

15 lines
483 B
Plaintext

$OpenBSD: patch-m_config_h,v 1.1 2004/10/18 06:48:20 biorn Exp $
--- m_config.h.orig Wed Aug 13 18:29:00 2003
+++ m_config.h Fri Sep 17 23:13:31 2004
@@ -9,7 +9,9 @@ struct m_option_type;
struct m_config_save_slot {
m_config_save_slot_t* prev;
int lvl;
- unsigned char data[0];
+ // we have to store other datatypes in this as well,
+ // so make sure we get properly aligned addresses
+ unsigned char data[0] __attribute__ ((aligned (8)));
};
struct m_config_option {