require '_h2ph_pre.ph';

unless(defined(&_LINUX_PROC_FS_H)) {
    eval 'sub _LINUX_PROC_FS_H () {1;}' unless defined(&_LINUX_PROC_FS_H);
    require 'linux/config.ph';
    require 'linux/slab.ph';
    eval 'sub FIRST_PROCESS_ENTRY () {256;}' unless defined(&FIRST_PROCESS_ENTRY);
    eval("sub PROC_ROOT_INO () { 1; }") unless defined(&PROC_ROOT_INO);
    eval 'sub PROC_DYNAMIC_FIRST () {4096;}' unless defined(&PROC_DYNAMIC_FIRST);
    eval 'sub PROC_NDYNAMIC () {4096;}' unless defined(&PROC_NDYNAMIC);
    eval 'sub PROC_SUPER_MAGIC () {0x9fa0;}' unless defined(&PROC_SUPER_MAGIC);
    eval 'sub PROC_INODE_PROPER {
        local($inode) = @_;
	    eval q((($inode)-> &i_ino & ~0xffff));
    }' unless defined(&PROC_INODE_PROPER);
    if(defined(&CONFIG_PROC_FS)) {
    } else {
	eval 'sub proc_root_driver () { &NULL;}' unless defined(&proc_root_driver);
    }
}
1;
