diff --git a/src/common.h b/src/common.h
index cdb4d1d15b5ae1d9e1d97f611169e786d81967ce..2947c7396809f452f196127723a44a76da1f9875 100644
--- a/src/common.h
+++ b/src/common.h
@@ -3,11 +3,11 @@
 struct pixel {
 	int x, y;
 	uint8_t bright;
-};
+} __attribute__((packed));
 
 struct packet {
 	uint8_t cmd;
 	union {
 		struct pixel pixel;
 	};
-};
+} __attribute__((packed));