Browse Source

make sure _XOPEN_SOURCE gets defined before posix_memalign is used

master
Michael Hamburg 10 years ago
parent
commit
b69f11509f
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      src/include/field.h
  2. +3
    -2
      src/include/word.h

+ 1
- 1
src/include/field.h View File

@@ -9,8 +9,8 @@
#ifndef __FIELD_H__
#define __FIELD_H__

#include <string.h>
#include "constant_time.h"
#include <string.h>

#include "p448.h"
#define FIELD_BITS 448


+ 3
- 2
src/include/word.h View File

@@ -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


Loading…
Cancel
Save