diff options
author | deraadt <> | 2014-07-12 18:57:41 +0000 |
---|---|---|
committer | deraadt <> | 2014-07-12 18:57:41 +0000 |
commit | e2b7f2c39293321853179a2a26f4a15975210159 (patch) | |
tree | c22cb0b3c5e9728cf524afcc47c58224b69415dd /src/lib | |
parent | bcf66caec5231d39ba4ae2994718518ca2837197 (diff) | |
download | openbsd-e2b7f2c39293321853179a2a26f4a15975210159.tar.gz openbsd-e2b7f2c39293321853179a2a26f4a15975210159.tar.bz2 openbsd-e2b7f2c39293321853179a2a26f4a15975210159.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 'src/lib')
-rw-r--r-- | src/lib/libc/crypt/arc4random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/arc4random.c b/src/lib/libc/crypt/arc4random.c index 9460af1e54..4fb57e0858 100644 --- a/src/lib/libc/crypt/arc4random.c +++ b/src/lib/libc/crypt/arc4random.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: arc4random.c,v 1.41 2014/07/12 13:24:54 deraadt Exp $ */ | 1 | /* $OpenBSD: arc4random.c,v 1.42 2014/07/12 18:57:41 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> | 4 | * Copyright (c) 1996, David Mazieres <dm@uun.org> |
@@ -34,7 +34,9 @@ | |||
34 | #include <sys/time.h> | 34 | #include <sys/time.h> |
35 | #include <sys/mman.h> | 35 | #include <sys/mman.h> |
36 | 36 | ||
37 | #ifdef __OpenBSD__ | ||
37 | #include "thread_private.h" | 38 | #include "thread_private.h" |
39 | #endif /* __OpenBSD__ */ | ||
38 | 40 | ||
39 | #define KEYSTREAM_ONLY | 41 | #define KEYSTREAM_ONLY |
40 | #include "chacha_private.h" | 42 | #include "chacha_private.h" |