Browse Source

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
OPENBSD_5_6
deraadt 10 years ago
parent
commit
30150934f0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/lib/libc/crypt/arc4random.c

+ 3
- 1
src/lib/libc/crypt/arc4random.c View File

@ -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> * Copyright (c) 1996, David Mazieres <dm@uun.org>
@ -34,7 +34,9 @@
#include <sys/time.h> #include <sys/time.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifdef __OpenBSD__
#include "thread_private.h" #include "thread_private.h"
#endif /* __OpenBSD__ */
#define KEYSTREAM_ONLY #define KEYSTREAM_ONLY
#include "chacha_private.h" #include "chacha_private.h"


Loading…
Cancel
Save