require '_h2ph_pre.ph';

unless(defined(&_SYS_SHM_H_)) {
    eval 'sub _SYS_SHM_H_ () {1;}' unless defined(&_SYS_SHM_H_);
    require 'sys/ipc.ph';
    eval 'sub SHM_RDONLY () {010000;}' unless defined(&SHM_RDONLY);
    eval 'sub SHM_RND () {020000;}' unless defined(&SHM_RND);
    eval 'sub SHMLBA () { &CLBYTES;}' unless defined(&SHMLBA);
    eval 'sub SHM_R () {( &IPC_R);}' unless defined(&SHM_R);
    eval 'sub SHM_W () {( &IPC_W);}' unless defined(&SHM_W);
    if(defined(&_KERNEL)) {
    }
    if(defined(&_KERNEL)) {
	eval 'sub SHM_LOCK () {3;}' unless defined(&SHM_LOCK);
	eval 'sub SHM_UNLOCK () {4;}' unless defined(&SHM_UNLOCK);
    } else {
	require 'sys/cdefs.ph';
    }
}
1;
