aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/compat/thread_private.h14
1 files changed, 0 insertions, 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 @@
1#include <pthread.h>
2
3static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER;
4
5#define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx)
6#define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx)
7
8#ifdef __GLIBC__
9extern void *__dso_handle;
10extern int __register_atfork(void (*)(void), void(*)(void), void (*)(void), void *);
11#define _ARC4_ATFORK(f) __register_atfork(NULL, NULL, (f), __dso_handle)
12#else
13#define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f))
14#endif