artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98694cd
)
#ifdef wrap the _rs_forkhandler
author
deraadt
<deraadt@openbsd.org>
Wed, 16 Jul 2014 00:18:54 +0000
(
00:18
+0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 16 Jul 2014 00:18:54 +0000
(
00:18
+0000)
lib/libc/crypt/arc4random.c
patch
|
blob
|
history
diff --git
a/lib/libc/crypt/arc4random.c
b/lib/libc/crypt/arc4random.c
index
37b1ad7
..
3b7f34f
100644
(file)
--- a/
lib/libc/crypt/arc4random.c
+++ b/
lib/libc/crypt/arc4random.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: arc4random.c,v 1.4
4 2014/07/16 00:15:35 bcook Exp $
*/
+/* $OpenBSD: arc4random.c,v 1.4
5 2014/07/16 00:18:54 deraadt Exp $
*/
/*
* Copyright (c) 1996, David Mazieres <dm@uun.org>
@@
-65,12
+65,14
@@
static struct {
static inline void _rs_rekey(u_char *dat, size_t datlen);
+#ifndef MAP_INHERIT_ZERO
static inline void
_rs_forkhandler(void)
{
if (rs)
rs->rs_count = 0;
}
+#endif /* MAP_INHERIT_ZERO */
static inline void
_rs_init(u_char *buf, size_t n)