require '_h2ph_pre.ph';

unless(defined(&_LINUX_TIME_H)) {
    eval 'sub _LINUX_TIME_H () {1;}' unless defined(&_LINUX_TIME_H);
    require 'asm/param.ph';
    require 'linux/types.ph';
    unless(defined(&_STRUCT_TIMESPEC)) {
	eval 'sub _STRUCT_TIMESPEC () {1;}' unless defined(&_STRUCT_TIMESPEC);
    }
    eval 'sub NFDBITS () { &__NFDBITS;}' unless defined(&NFDBITS);
    eval 'sub FD_SETSIZE () { &__FD_SETSIZE;}' unless defined(&FD_SETSIZE);
    eval 'sub FD_SET {
        local($fd,$fdsetp) = @_;
	    eval q( &__FD_SET($fd,$fdsetp));
    }' unless defined(&FD_SET);
    eval 'sub FD_CLR {
        local($fd,$fdsetp) = @_;
	    eval q( &__FD_CLR($fd,$fdsetp));
    }' unless defined(&FD_CLR);
    eval 'sub FD_ISSET {
        local($fd,$fdsetp) = @_;
	    eval q( &__FD_ISSET($fd,$fdsetp));
    }' unless defined(&FD_ISSET);
    eval 'sub FD_ZERO {
        local($fdsetp) = @_;
	    eval q( &__FD_ZERO($fdsetp));
    }' unless defined(&FD_ZERO);
    eval 'sub ITIMER_REAL () {0;}' unless defined(&ITIMER_REAL);
    eval 'sub ITIMER_VIRTUAL () {1;}' unless defined(&ITIMER_VIRTUAL);
    eval 'sub ITIMER_PROF () {2;}' unless defined(&ITIMER_PROF);
}
1;
