require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_MSGBUF_H_)) {
    eval 'sub _SYS_MSGBUF_H_ () {1;}' unless defined(&_SYS_MSGBUF_H_);
    eval 'sub MSG_MAGIC () {0x63061;}' unless defined(&MSG_MAGIC);
    if(defined(&_KERNEL)) {
	eval 'sub logenabled {
	    my($mbp) = @_;
    	    eval q({  &msgbufenabled  &&  ($mbp->{msg_magic}) ==  &MSG_MAGIC; });
	}' unless defined(&logenabled);
    }
}
1;
