
tested on: HP-UX 11.31 ia64, gcc 4.7.1(HP AllianceOne version) gcc 4.2.3(http://hpux.connect.org.uk) HP C/aC++ HP-UX defaults to use LP32 and it treats long as 32 bit (= 4 bytes). This build forces LP64 for treating long as 64 bit.
30 lines
502 B
C
30 lines
502 B
C
#ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
#define LIBCRYPTOCOMPAT_ARC4RANDOM_H
|
|
|
|
#include <sys/param.h>
|
|
|
|
#if defined(__FreeBSD__)
|
|
#include "arc4random_freebsd.h"
|
|
|
|
#elif defined(__hpux)
|
|
#include "arc4random_hpux.h"
|
|
|
|
#elif defined(__linux__)
|
|
#include "arc4random_linux.h"
|
|
|
|
#elif defined(__APPLE__)
|
|
#include "arc4random_osx.h"
|
|
|
|
#elif defined(__sun)
|
|
#include "arc4random_solaris.h"
|
|
|
|
#elif defined(_WIN32)
|
|
#include "arc4random_win.h"
|
|
|
|
#else
|
|
#error "No arc4random hooks defined for this platform."
|
|
|
|
#endif
|
|
|
|
#endif
|