From 30150934f08a1f7e134a41c48058f7f9391766c8 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 12 Jul 2014 18:57:41 +0000 Subject: [PATCH] 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 --- src/lib/libc/crypt/arc4random.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 9460af1e..4fb57e08 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/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 @@ -34,7 +34,9 @@ #include #include +#ifdef __OpenBSD__ #include "thread_private.h" +#endif /* __OpenBSD__ */ #define KEYSTREAM_ONLY #include "chacha_private.h"