2014-10-30 16:52:29 +01:00
|
|
|
#ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
#define LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
|
2014-10-28 01:22:03 +01:00
|
|
|
#include <sys/param.h>
|
|
|
|
|
2015-02-11 06:49:31 +01:00
|
|
|
#if defined(_AIX)
|
|
|
|
#include "arc4random_aix.h"
|
|
|
|
|
|
|
|
#elif defined(__FreeBSD__)
|
2014-10-28 01:22:03 +01:00
|
|
|
#include "arc4random_freebsd.h"
|
|
|
|
|
2014-12-08 03:08:45 +01:00
|
|
|
#elif defined(__hpux)
|
|
|
|
#include "arc4random_hpux.h"
|
|
|
|
|
2014-10-28 01:22:03 +01:00
|
|
|
#elif defined(__linux__)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_linux.h"
|
|
|
|
|
2015-01-21 13:14:24 +01:00
|
|
|
#elif defined(__NetBSD__)
|
|
|
|
#include "arc4random_netbsd.h"
|
|
|
|
|
2014-07-29 03:57:43 +02:00
|
|
|
#elif defined(__APPLE__)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_osx.h"
|
|
|
|
|
2014-07-29 03:57:43 +02:00
|
|
|
#elif defined(__sun)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_solaris.h"
|
|
|
|
|
2014-11-05 13:52:00 +01:00
|
|
|
#elif defined(_WIN32)
|
2014-07-18 06:58:46 +02:00
|
|
|
#include "arc4random_win.h"
|
2014-07-29 03:57:43 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "No arc4random hooks defined for this platform."
|
|
|
|
|
2014-07-18 06:58:46 +02:00
|
|
|
#endif
|
|
|
|
|
2014-10-30 16:52:29 +01:00
|
|
|
#endif
|