From: Lennart Poettering Date: Fri, 11 Apr 2008 16:52:45 +0000 (+0000) Subject: mark shm marker struct as packed, to guarantee identical sizes between archs X-Git-Tag: v0.9.11~63^2^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c6176fdd40ccec36b3788a07289cf57cafd028f;p=platform%2Fupstream%2Fpulseaudio.git mark shm marker struct as packed, to guarantee identical sizes between archs git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2254 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index 33034e2..a1bbf60 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -42,6 +42,7 @@ #endif #include +#include #include #include @@ -69,8 +70,9 @@ #define SHM_MARKER ((int) 0xbeefcafe) -/* We now put this SHM marker at the end of each segment. It's optional to not require a reboot when upgrading, though */ -struct shm_marker { +/* We now put this SHM marker at the end of each segment. It's + * optional, to not require a reboot when upgrading, though */ +struct shm_marker PA_GCC_PACKED { pa_atomic_t marker; /* 0xbeefcafe */ pa_atomic_t pid; uint64_t *_reserverd1;