require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_RANDOM_H)) {
    eval 'sub _SYS_RANDOM_H () {1;}' unless defined(&_SYS_RANDOM_H);
    require 'sys/cdefs.ph';
    require 'machine/ansi.ph';
    eval 'sub GRND_NONBLOCK () {(1 << 0);}' unless defined(&GRND_NONBLOCK);
    eval 'sub GRND_RANDOM () {(1 << 1);}' unless defined(&GRND_RANDOM);
    eval 'sub GRND_INSECURE () {(1 << 2);}' unless defined(&GRND_INSECURE);
    if(defined(&_KERNEL)) {
    }
    unless(defined(&_KERNEL)) {
	if(defined(&_BSD_SIZE_T_)) {
	    undef(&_BSD_SIZE_T_) if defined(&_BSD_SIZE_T_);
	}
	if(defined(&_BSD_SSIZE_T_)) {
	    undef(&_BSD_SSIZE_T_) if defined(&_BSD_SSIZE_T_);
	}
    }
}
1;
