From b69f11509fc8fe1ea62adf0a5da230cbb9e0d8ce Mon Sep 17 00:00:00 2001 From: Michael Hamburg Date: Tue, 21 Oct 2014 11:18:22 -0700 Subject: [PATCH] make sure _XOPEN_SOURCE gets defined before posix_memalign is used --- src/include/field.h | 2 +- src/include/word.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/include/field.h b/src/include/field.h index bf36e95..4d6e7eb 100644 --- a/src/include/field.h +++ b/src/include/field.h @@ -9,8 +9,8 @@ #ifndef __FIELD_H__ #define __FIELD_H__ -#include #include "constant_time.h" +#include #include "p448.h" #define FIELD_BITS 448 diff --git a/src/include/word.h b/src/include/word.h index ddc8d36..b38ac68 100644 --- a/src/include/word.h +++ b/src/include/word.h @@ -5,11 +5,12 @@ #ifndef __WORD_H__ #define __WORD_H__ -#include "arch_config.h" - /* for posix_memalign */ #define _XOPEN_SOURCE 600 +#include "arch_config.h" + + #ifndef __APPLE__ #ifndef _BSD_SOURCE #define _BSD_SOURCE 1