mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
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
This commit is contained in:
parent
29cbd88138
commit
2c6176fdd4
1 changed files with 4 additions and 2 deletions
|
|
@ -42,6 +42,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <pulse/xmalloc.h>
|
#include <pulse/xmalloc.h>
|
||||||
|
#include <pulse/gccmacro.h>
|
||||||
|
|
||||||
#include <pulsecore/core-error.h>
|
#include <pulsecore/core-error.h>
|
||||||
#include <pulsecore/log.h>
|
#include <pulsecore/log.h>
|
||||||
|
|
@ -69,8 +70,9 @@
|
||||||
|
|
||||||
#define SHM_MARKER ((int) 0xbeefcafe)
|
#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 */
|
/* We now put this SHM marker at the end of each segment. It's
|
||||||
struct shm_marker {
|
* optional, to not require a reboot when upgrading, though */
|
||||||
|
struct shm_marker PA_GCC_PACKED {
|
||||||
pa_atomic_t marker; /* 0xbeefcafe */
|
pa_atomic_t marker; /* 0xbeefcafe */
|
||||||
pa_atomic_t pid;
|
pa_atomic_t pid;
|
||||||
uint64_t *_reserverd1;
|
uint64_t *_reserverd1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue