diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /devel/efivar/files/patch-src_compiler.h | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'devel/efivar/files/patch-src_compiler.h')
| -rw-r--r-- | devel/efivar/files/patch-src_compiler.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/efivar/files/patch-src_compiler.h b/devel/efivar/files/patch-src_compiler.h new file mode 100644 index 000000000000..ad398379bffa --- /dev/null +++ b/devel/efivar/files/patch-src_compiler.h @@ -0,0 +1,13 @@ +--- src/compiler.h.orig 2024-01-31 20:08:46 UTC ++++ src/compiler.h +@@ -74,7 +74,9 @@ + + #define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) + #define __ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) +-#define ALIGN(x, a) __ALIGN((x), (a)) ++#if !defined(ALIGN) ++# define ALIGN(x, a) __ALIGN((x), (a)) ++#endif + #define ALIGN_DOWN(x, a) __ALIGN((x) - ((a) - 1), (a)) + + #define ALIGNMENT_PADDING(value, align) ((align - (value % align)) % align) |
