aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/oaes_lib.c
diff options
context:
space:
mode:
authorfluffypony <ric@spagni.net>2014-09-09 14:49:13 +0200
committerfluffypony <ric@spagni.net>2014-09-09 14:49:13 +0200
commit266c639f4fbadee324007d5fabf6089b7a6d9753 (patch)
treec2d5015d9f2759f3a16817e3ff70e413a6c31f7a /src/crypto/oaes_lib.c
parentmalloc.h reference fixed for FreeBSD (diff)
downloadmonero-266c639f4fbadee324007d5fabf6089b7a6d9753.tar.xz
more FreeBSD fixes
Diffstat (limited to '')
-rw-r--r--src/crypto/oaes_lib.c9
1 files 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 <stddef.h>
#include <time.h>
-#include <sys/timeb.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#ifndef __APPLE__ || __FREEBSD__
+// Both OS X and FreeBSD don't need malloc.h
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
#include <malloc.h>
#endif
+// FreeBSD also doesn't need timeb.h
+#ifndef __FreeBSD__
+ #include <sys/timeb.h>
+#endif
+
#ifdef WIN32
#include <process.h>
#else