summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-12 18:57:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-07-12 18:57:42 +0000
commitd8d41b4a03c62b64b16e2e4fe3dd5f26408b790c (patch)
treea234e9a098c8a55ea04a8ea81f9baa4235aca9e0
parent2f8292fd0f0d4f998a8d07123af9c41efea65952 (diff)
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
-rw-r--r--lib/libc/crypt/arc4random.c4
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"