mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-29 11:08:35 -05:00
make PA_GCC_PACKED and PA_GCC_MALLOC actually work
This commit is contained in:
parent
c0fb91db54
commit
44bca66c59
5 changed files with 10 additions and 10 deletions
|
|
@ -70,14 +70,14 @@
|
|||
|
||||
/* 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 {
|
||||
struct shm_marker {
|
||||
pa_atomic_t marker; /* 0xbeefcafe */
|
||||
pa_atomic_t pid;
|
||||
uint64_t _reserved1;
|
||||
uint64_t _reserved2;
|
||||
uint64_t _reserved3;
|
||||
uint64_t _reserved4;
|
||||
};
|
||||
} PA_GCC_PACKED;
|
||||
|
||||
static char *segment_name(char *fn, size_t l, unsigned id) {
|
||||
pa_snprintf(fn, l, "/pulse-shm-%u", id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue