From 266c639f4fbadee324007d5fabf6089b7a6d9753 Mon Sep 17 00:00:00 2001 From: fluffypony Date: Tue, 9 Sep 2014 14:49:13 +0200 Subject: [PATCH] more FreeBSD fixes --- src/crypto/oaes_lib.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/crypto/oaes_lib.c b/src/crypto/oaes_lib.c index 1dce99edd..8e45309b5 100644 --- a/src/crypto/oaes_lib.c +++ b/src/crypto/oaes_lib.c @@ -33,15 +33,20 @@ static const char _NR[] = { #include #include -#include #include #include #include -#ifndef __APPLE__ || __FREEBSD__ +// Both OS X and FreeBSD don't need malloc.h +#if !defined(__APPLE__) && !defined(__FreeBSD__) #include #endif +// FreeBSD also doesn't need timeb.h +#ifndef __FreeBSD__ + #include +#endif + #ifdef WIN32 #include #else