From b67b154f1e0987e9c5dd9138125345e6f0daff9c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 27 Oct 2016 10:04:03 -0300 Subject: [PATCH] test --- src/komodo_utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 2905836ca..686da09f5 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -15,6 +15,10 @@ #define SATOSHIDEN ((uint64_t)100000000L) #define dstr(x) ((double)(x) / SATOSHIDEN) +#define portable_mutex_t pthread_mutex_t +#define portable_mutex_init(ptr) pthread_mutex_init(ptr,NULL) +#define portable_mutex_lock pthread_mutex_lock +#define portable_mutex_unlock pthread_mutex_unlock struct queueitem { struct queueitem *next,*prev; uint32_t allocsize,type; };