aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/oaes_lib.c
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-01-25 19:37:45 +0200
committerRiccardo Spagni <ric@spagni.net>2016-01-25 19:37:45 +0200
commitd7b4e77aa3c49cafc34c4f26ec36e9aa553673c1 (patch)
treedf81081e4902d84a5faeb5956b0f7a8be3731de4 /src/crypto/oaes_lib.c
parentMerge pull request #616 (diff)
parentMy markdown-fu sucks :P (diff)
downloadmonero-d7b4e77aa3c49cafc34c4f26ec36e9aa553673c1.tar.xz
Merge pull request #618
64f4cd9 My markdown-fu sucks :P (me0wmix) a6794e2 Instructions updated to include g++ package and omit optional packages (me0wmix) 34ebfe3 Last fixups in the Cmake stuff and better default build instruction (me0wmix) 82ecb3f More formatting fixes to instructions (me0wmix) efc771d Corrected formatting on OpenBSD instructions (me0wmix) c965bf4 Added/corrected OpenBSD build instructions. (me0wmix) 28f95eb OpenBSD support for Monero. (me0wmix)
Diffstat (limited to 'src/crypto/oaes_lib.c')
-rw-r--r--src/crypto/oaes_lib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crypto/oaes_lib.c b/src/crypto/oaes_lib.c
index c86b8caa0..7fbe96e4c 100644
--- a/src/crypto/oaes_lib.c
+++ b/src/crypto/oaes_lib.c
@@ -37,13 +37,13 @@ static const char _NR[] = {
#include <stdlib.h>
#include <stdio.h>
-// Both OS X and FreeBSD don't need malloc.h
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
+// OS X, FreeBSD, and OpenBSD don't need malloc.h
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <malloc.h>
#endif
-// FreeBSD also doesn't need timeb.h
-#ifndef __FreeBSD__
+// FreeBSD, and OpenBSD also don't need timeb.h
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
#include <sys/timeb.h>
#else
#include <sys/time.h>
@@ -470,7 +470,7 @@ OAES_RET oaes_sprintf(
#ifdef OAES_HAVE_ISAAC
static void oaes_get_seed( char buf[RANDSIZ + 1] )
{
- #ifndef __FreeBSD__
+ #if !defined(__FreeBSD__) && !defined(__OpenBSD__)
struct timeb timer;
struct tm *gmTimer;
char * _test = NULL;
@@ -502,7 +502,7 @@ static void oaes_get_seed( char buf[RANDSIZ + 1] )
#else
static uint32_t oaes_get_seed(void)
{
- #ifndef __FreeBSD__
+ #if !defined(__FreeBSD__) && !defined(__OpenBSD__)
struct timeb timer;
struct tm *gmTimer;
char * _test = NULL;