[pulseaudio-commits] r2254 - /branches/glitch-free/src/pulsecore/shm.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Apr 11 09:52:46 PDT 2008


Author: lennart
Date: Fri Apr 11 18:52:45 2008
New Revision: 2254

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2254&root=pulseaudio&view=rev
Log:
mark shm marker struct as packed, to guarantee identical sizes between archs

Modified:
    branches/glitch-free/src/pulsecore/shm.c

Modified: branches/glitch-free/src/pulsecore/shm.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/shm.c?rev=2254&root=pulseaudio&r1=2253&r2=2254&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/shm.c (original)
+++ branches/glitch-free/src/pulsecore/shm.c Fri Apr 11 18:52:45 2008
@@ -42,6 +42,7 @@
 #endif
 
 #include <pulse/xmalloc.h>
+#include <pulse/gccmacro.h>
 
 #include <pulsecore/core-error.h>
 #include <pulsecore/log.h>
@@ -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;




More information about the pulseaudio-commits mailing list