sync with OpenBSD -current
This commit is contained in:
parent
81739016d9
commit
48226b7c51
178 changed files with 76551 additions and 36405 deletions
|
@ -31,6 +31,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include <X11/X.h>
|
||||
#include <X11/Xmd.h>
|
||||
#include <X11/Xdmcp.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef HAVE_ARC4RANDOM_BUF
|
||||
static void
|
||||
|
@ -41,12 +42,9 @@ getbits (long data, unsigned char *dst)
|
|||
dst[2] = (data >> 16) & 0xff;
|
||||
dst[3] = (data >> 24) & 0xff;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define Time_t time_t
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(HAVE_LRAND48) && defined(HAVE_SRAND48)
|
||||
#define srandom srand48
|
||||
#define random lrand48
|
||||
|
@ -58,8 +56,6 @@ getbits (long data, unsigned char *dst)
|
|||
#define getpid(x) _getpid(x)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ARC4RANDOM_BUF
|
||||
|
||||
/* Solaris 11.3.0 - 11.4.15 only define getentropy() in <sys/random.h> */
|
||||
#if HAVE_GETENTROPY && HAVE_SYS_RANDOM_H
|
||||
# include <sys/random.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue