diff options
Diffstat (limited to 'src/lib/libcrypto/crypto/arc4random_osx.h')
-rw-r--r-- | src/lib/libcrypto/crypto/arc4random_osx.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto/arc4random_osx.h b/src/lib/libcrypto/crypto/arc4random_osx.h index 55932bb823..aacbef9aae 100644 --- a/src/lib/libcrypto/crypto/arc4random_osx.h +++ b/src/lib/libcrypto/crypto/arc4random_osx.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: arc4random_osx.h,v 1.5 2014/07/19 14:34:38 bcook Exp $ */ | 1 | /* $OpenBSD: arc4random_osx.h,v 1.6 2014/07/19 15:29:25 bcook Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> | 4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> |
@@ -28,6 +28,8 @@ static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER; | |||
28 | #define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx) | 28 | #define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx) |
29 | #define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx) | 29 | #define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx) |
30 | 30 | ||
31 | #define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f)) | ||
32 | |||
31 | static volatile sig_atomic_t _rs_forked; | 33 | static volatile sig_atomic_t _rs_forked; |
32 | 34 | ||
33 | static inline void | 35 | static inline void |