aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libottery/ottery-internal.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 11:28:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 11:28:41 +0100
commit6ceac089b6a8fee5aef14307b0561e98202947c5 (patch)
treebf105ef7acee480dc41c498fa8b7f0ba77a7effb /contrib/libottery/ottery-internal.h
parent61f993a096adee992be9b5333f6c0090440f00ed (diff)
downloadrspamd-6ceac089b6a8fee5aef14307b0561e98202947c5.tar.gz
rspamd-6ceac089b6a8fee5aef14307b0561e98202947c5.zip
Fix some portability issues.
Diffstat (limited to 'contrib/libottery/ottery-internal.h')
-rw-r--r--contrib/libottery/ottery-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libottery/ottery-internal.h b/contrib/libottery/ottery-internal.h
index 2d8a03185..7e3f46e05 100644
--- a/contrib/libottery/ottery-internal.h
+++ b/contrib/libottery/ottery-internal.h
@@ -196,16 +196,16 @@ struct ottery_config {
#define ottery_state_nolock ottery_state
-struct __attribute__((aligned(16))) ottery_state {
+struct RSPAMD_ALIGNED(16) ottery_state {
/**
* Holds up to prf.output_len bytes that have been generated by the
* pseudorandom function. */
- __attribute__ ((aligned (16))) uint8_t buffer[MAX_OUTPUT_LEN];
+ uint8_t buffer[MAX_OUTPUT_LEN] RSPAMD_ALIGNED(16);
/**
* Holds the state information (typically nonces and keys) used by the
* pseudorandom function. */
- __attribute__ ((aligned (16))) uint8_t state[MAX_STATE_LEN];
+ uint8_t state[MAX_STATE_LEN] RSPAMD_ALIGNED(16);
/**
* Parameters and function pointers for the cryptographic pseudorandom
* function that we're using. */