Skip to contentSkip to conversation

FreeBSD already defines packed. Check for existing definition, before defining.

PATCH New Hans Petter Selasky 1 participant 1 message Jul 13, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FreeBSD already defines packed. Check for existing definition, before defining.

---
 utils/common/v4l2-tpg.h | 2 ++
 1 file changed, 2 insertions(+)
utils/common/v4l2-tpg.h +2 -0
index c07c60aa..b2eab10d 100644
@@ -22,7 +22,9 @@ typedef __s16 s16;
 typedef __u8 u8;
 typedef __s8 s8;
 
+#ifndef __packed
 #define __packed __attribute__((packed))
+#endif
 #define pr_info printf
 #define noinline