require '_h2ph_pre.ph';

unless(defined(&_SYS_PERSONALITY_H)) {
    eval 'sub _SYS_PERSONALITY_H () {1;}' unless defined(&_SYS_PERSONALITY_H);
    require 'features.ph';
    eval("sub MMAP_PAGE_ZERO () { 0x0100000; }") unless defined(&MMAP_PAGE_ZERO);
    eval("sub ADDR_LIMIT_32BIT () { 0x0800000; }") unless defined(&ADDR_LIMIT_32BIT);
    eval("sub SHORT_INODE () { 0x1000000; }") unless defined(&SHORT_INODE);
    eval("sub WHOLE_SECONDS () { 0x2000000; }") unless defined(&WHOLE_SECONDS);
    eval("sub STICKY_TIMEOUTS () { 0x4000000; }") unless defined(&STICKY_TIMEOUTS);
    eval("sub PER_LINUX () { 0x0000; }") unless defined(&PER_LINUX);
    eval("sub PER_LINUX_32BIT () { 0x0000|ADDR_LIMIT_32BIT; }") unless defined(&PER_LINUX_32BIT);
    eval("sub PER_SVR4 () { 0x0001|STICKY_TIMEOUTS|MMAP_PAGE_ZERO; }") unless defined(&PER_SVR4);
    eval("sub PER_SVR3 () { 0x0002|STICKY_TIMEOUTS|SHORT_INODE; }") unless defined(&PER_SVR3);
    eval("sub PER_SCOSVR3 () { 0x0003|STICKY_TIMEOUTS|WHOLE_SECONDS|SHORT_INODE; }") unless defined(&PER_SCOSVR3);
    eval("sub PER_OSR5 () { 0x0003|STICKY_TIMEOUTS|WHOLE_SECONDS; }") unless defined(&PER_OSR5);
    eval("sub PER_WYSEV386 () { 0x0004|STICKY_TIMEOUTS|SHORT_INODE; }") unless defined(&PER_WYSEV386);
    eval("sub PER_ISCR4 () { 0x0005|STICKY_TIMEOUTS; }") unless defined(&PER_ISCR4);
    eval("sub PER_BSD () { 0x0006; }") unless defined(&PER_BSD);
    eval("sub PER_SUNOS () { 0x0006|STICKY_TIMEOUTS; }") unless defined(&PER_SUNOS);
    eval("sub PER_XENIX () { 0x0007|STICKY_TIMEOUTS|SHORT_INODE; }") unless defined(&PER_XENIX);
    eval("sub PER_LINUX32 () { 0x0008; }") unless defined(&PER_LINUX32);
    eval("sub PER_IRIX32 () { 0x0009|STICKY_TIMEOUTS; }") unless defined(&PER_IRIX32);
    eval("sub PER_IRIXN32 () { 0x000a|STICKY_TIMEOUTS; }") unless defined(&PER_IRIXN32);
    eval("sub PER_IRIX64 () { 0x000b|STICKY_TIMEOUTS; }") unless defined(&PER_IRIX64);
    eval("sub PER_RISCOS () { 0x000c; }") unless defined(&PER_RISCOS);
    eval("sub PER_SOLARIS () { 0x000d|STICKY_TIMEOUTS; }") unless defined(&PER_SOLARIS);
    eval("sub PER_UW7 () { 0x000e|STICKY_TIMEOUTS|MMAP_PAGE_ZERO; }") unless defined(&PER_UW7);
    eval("sub PER_HPUX () { 0x000f; }") unless defined(&PER_HPUX);
    eval("sub PER_OSF4 () { 0x0010; }") unless defined(&PER_OSF4);
    eval("sub PER_MASK () { 0x00ff; }") unless defined(&PER_MASK);
}
1;
