require '_h2ph_pre.ph';

unless(defined(&_LINUX_THREADS_H)) {
    eval 'sub _LINUX_THREADS_H () {1;}' unless defined(&_LINUX_THREADS_H);
    require 'linux/config.ph';
    if(defined(&CONFIG_SMP)) {
	eval 'sub NR_CPUS () {32;}' unless defined(&NR_CPUS);
    } else {
	eval 'sub NR_CPUS () {1;}' unless defined(&NR_CPUS);
    }
    eval 'sub MIN_THREADS_LEFT_FOR_ROOT () {4;}' unless defined(&MIN_THREADS_LEFT_FOR_ROOT);
    eval 'sub PID_MAX () {0x8000;}' unless defined(&PID_MAX);
}
1;
