require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_KMEM_H_)) {
    eval 'sub _SYS_KMEM_H_ () {1;}' unless defined(&_SYS_KMEM_H_);
    require 'sys/types.ph';
    eval 'sub kmem_strdup {
        my($s, $f) = @_;
	    eval q( &kmem_strdupsize(($s),  &NULL, ($f)));
    }' unless defined(&kmem_strdup);
    eval 'sub KM_SLEEP () {0x1;}' unless defined(&KM_SLEEP);
    eval 'sub KM_NOSLEEP () {0x2;}' unless defined(&KM_NOSLEEP);
}
1;
