require '_h2ph_pre.ph';

unless(defined(&_LINUX_SYS_H)) {
    eval 'sub _LINUX_SYS_H () {1;}' unless defined(&_LINUX_SYS_H);
    eval 'sub NR_syscalls () {256;}' unless defined(&NR_syscalls);
    if(defined(&notdef)) {
	eval 'sub _sys_waitpid () { &_sys_old_syscall;}' unless defined(&_sys_waitpid);
	eval 'sub _sys_olduname () { &_sys_old_syscall;}' unless defined(&_sys_olduname);
	eval 'sub _sys_uname () { &_sys_old_syscall;}' unless defined(&_sys_uname);
	eval 'sub _sys_stat () { &_sys_old_syscall;}' unless defined(&_sys_stat);
	eval 'sub _sys_fstat () { &_sys_old_syscall;}' unless defined(&_sys_fstat);
	eval 'sub _sys_lstat () { &_sys_old_syscall;}' unless defined(&_sys_lstat);
	eval 'sub _sys_signal () { &_sys_old_syscall;}' unless defined(&_sys_signal);
	eval 'sub _sys_sgetmask () { &_sys_old_syscall;}' unless defined(&_sys_sgetmask);
	eval 'sub _sys_ssetmask () { &_sys_old_syscall;}' unless defined(&_sys_ssetmask);
    }
}
1;
