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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Signed-off-by: Hans Petter Selasky <hps@xxxxxxxxxxx>
---
 utils/common/v4l2-tpg.h | 2 ++
 1 file changed, 2 insertions(+)

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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux