summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbfstool/compiler.h4
-rw-r--r--util/cbmem/compiler.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/util/cbfstool/compiler.h b/util/cbfstool/compiler.h
index a830239009..fc6a36b650 100644
--- a/util/cbfstool/compiler.h
+++ b/util/cbfstool/compiler.h
@@ -16,6 +16,8 @@
#ifndef __COMPILER_H__
#define __COMPILER_H__
+#if !defined(__FreeBSD__)
+
#if defined(__WIN32) || defined(__WIN64)
#define __packed __attribute__((gcc_struct, packed))
#else
@@ -23,6 +25,8 @@
#endif
#define __aligned(x) __attribute__((aligned(x)))
+#endif
+
#define __always_unused __attribute__((unused))
#define __must_check __attribute__((warn_unused_result))
diff --git a/util/cbmem/compiler.h b/util/cbmem/compiler.h
index a830239009..fc6a36b650 100644
--- a/util/cbmem/compiler.h
+++ b/util/cbmem/compiler.h
@@ -16,6 +16,8 @@
#ifndef __COMPILER_H__
#define __COMPILER_H__
+#if !defined(__FreeBSD__)
+
#if defined(__WIN32) || defined(__WIN64)
#define __packed __attribute__((gcc_struct, packed))
#else
@@ -23,6 +25,8 @@
#endif
#define __aligned(x) __attribute__((aligned(x)))
+#endif
+
#define __always_unused __attribute__((unused))
#define __must_check __attribute__((warn_unused_result))