diff mbox series

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

Message ID 6664dfef-7ef7-af9c-e558-a8e9e242b593@selasky.org (mailing list archive)
State New, archived
Headers show
Series FreeBSD already defines packed. Check for existing definition, before defining. | expand

Commit Message

Hans Petter Selasky July 13, 2020, 3:48 p.m. UTC
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
---
  utils/common/v4l2-tpg.h | 2 ++
  1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/utils/common/v4l2-tpg.h b/utils/common/v4l2-tpg.h
index c07c60aa..b2eab10d 100644
--- a/utils/common/v4l2-tpg.h
+++ b/utils/common/v4l2-tpg.h
@@ -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