From: deraadt Date: Sat, 12 Jul 2014 18:57:41 +0000 (+0000) Subject: Wrap "thread_private.h" with #ifdef __OpenBSD__ so that other systems X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=205b4a083eb36fc92dfd1d18346c47132cc09762;p=openbsd 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 --- 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 @@ -34,7 +34,9 @@ #include #include +#ifdef __OpenBSD__ #include "thread_private.h" +#endif /* __OpenBSD__ */ #define KEYSTREAM_ONLY #include "chacha_private.h"