From edebb7a66e0b107c7b07fa119f4e6b517c442089 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 19 Jul 2014 10:49:08 -0500 Subject: remove thread_private.h defines, moved to arc4random_*.h --- crypto/compat/thread_private.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/crypto/compat/thread_private.h b/crypto/compat/thread_private.h index c5b0daf..e69de29 100644 --- a/crypto/compat/thread_private.h +++ b/crypto/compat/thread_private.h @@ -1,14 +0,0 @@ -#include - -static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER; - -#define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx) -#define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx) - -#ifdef __GLIBC__ -extern void *__dso_handle; -extern int __register_atfork(void (*)(void), void(*)(void), void (*)(void), void *); -#define _ARC4_ATFORK(f) __register_atfork(NULL, NULL, (f), __dso_handle) -#else -#define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f)) -#endif -- cgit v1.2.3-55-g6feb