From 131e4bec04f40f3dd020ce7fd8467c6a58105baa Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 24 Feb 2014 11:10:11 +0000 Subject: time: only use packed struct on x86* * configure.in: define PACKED_STRUCT_UNALIGNED for x86* * timev.h (struct vtm): use PACKED_STRUCT_UNALIGNED * time.c (struct time_object): ditto [Bug #9558] non-x86 cannot safely access unaligned addresses git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- timev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'timev.h') diff --git a/timev.h b/timev.h index eda7023eb3..bedf9a174a 100644 --- a/timev.h +++ b/timev.h @@ -14,7 +14,7 @@ struct vtm { uint8_t sec:6; /* 0..60 */ uint8_t wday:3; /* 0:Sunday, 1:Monday, ..., 6:Saturday 7:init */ uint8_t isdst:2; /* 0:StandardTime 1:DayLightSavingTime 3:init */ -} PACKED_STRUCT; +} PACKED_STRUCT_UNALIGNED; #define TIME_SCALE 1000000000 -- cgit v1.2.3