diff options
author | 2014-07-12 18:57:41 +0000 | |
---|---|---|
committer | 2014-07-12 18:57:41 +0000 | |
commit | 205b4a083eb36fc92dfd1d18346c47132cc09762 (patch) | |
tree | b516e66a20dc6579b7174457db674383350d51e3 /lib/libc/crypt/arc4random.c | |
parent | add a size argument to free. will be used soon, but for now default to 0. (diff) | |
download | wireguard-openbsd-205b4a083eb36fc92dfd1d18346c47132cc09762.tar.xz wireguard-openbsd-205b4a083eb36fc92dfd1d18346c47132cc09762.zip |
Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems
can copy this file (plus chacha_private.h) directly and reuse it
trivially. Well, as long as they have a getentropy() as well..
ok beck
Diffstat (limited to 'lib/libc/crypt/arc4random.c')
-rw-r--r-- | lib/libc/crypt/arc4random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/crypt/arc4random.c b/lib/libc/crypt/arc4random.c index 9460af1e542..4fb57e08587 100644 --- a/lib/libc/crypt/arc4random.c +++ b/lib/libc/crypt/arc4random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc4random.c,v 1.41 2014/07/12 13:24:54 deraadt Exp $ */ +/* $OpenBSD: arc4random.c,v 1.42 2014/07/12 18:57:41 deraadt Exp $ */ /* * Copyright (c) 1996, David Mazieres <dm@uun.org> @@ -34,7 +34,9 @@ #include <sys/time.h> #include <sys/mman.h> +#ifdef __OpenBSD__ #include "thread_private.h" +#endif /* __OpenBSD__ */ #define KEYSTREAM_ONLY #include "chacha_private.h" |