require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_UTMPX_H_)) {
    eval 'sub _UTMPX_H_ () {1;}' unless defined(&_UTMPX_H_);
    require 'sys/cdefs.ph';
    require 'sys/featuretest.ph';
    require 'sys/socket.ph';
    require 'sys/time.ph';
    eval 'sub _PATH_UTMPX () {"/var/run/utmpx";}' unless defined(&_PATH_UTMPX);
    eval 'sub _PATH_WTMPX () {"/var/log/wtmpx";}' unless defined(&_PATH_WTMPX);
    eval 'sub _PATH_LASTLOGX () {"/var/log/lastlogx";}' unless defined(&_PATH_LASTLOGX);
    eval 'sub _PATH_UTMP_UPDATE () {"/usr/libexec/utmp_update";}' unless defined(&_PATH_UTMP_UPDATE);
    eval 'sub _UTX_USERSIZE () {32;}' unless defined(&_UTX_USERSIZE);
    eval 'sub _UTX_LINESIZE () {32;}' unless defined(&_UTX_LINESIZE);
    eval 'sub _UTX_IDSIZE () {4;}' unless defined(&_UTX_IDSIZE);
    eval 'sub _UTX_HOSTSIZE () {256;}' unless defined(&_UTX_HOSTSIZE);
    if(defined(&_NETBSD_SOURCE)) {
	eval 'sub UTX_USERSIZE () { &_UTX_USERSIZE;}' unless defined(&UTX_USERSIZE);
	eval 'sub UTX_LINESIZE () { &_UTX_LINESIZE;}' unless defined(&UTX_LINESIZE);
	eval 'sub UTX_IDSIZE () { &_UTX_IDSIZE;}' unless defined(&UTX_IDSIZE);
	eval 'sub UTX_HOSTSIZE () { &_UTX_HOSTSIZE;}' unless defined(&UTX_HOSTSIZE);
    }
    eval 'sub EMPTY () {0;}' unless defined(&EMPTY);
    eval 'sub RUN_LVL () {1;}' unless defined(&RUN_LVL);
    eval 'sub BOOT_TIME () {2;}' unless defined(&BOOT_TIME);
    eval 'sub OLD_TIME () {3;}' unless defined(&OLD_TIME);
    eval 'sub NEW_TIME () {4;}' unless defined(&NEW_TIME);
    eval 'sub INIT_PROCESS () {5;}' unless defined(&INIT_PROCESS);
    eval 'sub LOGIN_PROCESS () {6;}' unless defined(&LOGIN_PROCESS);
    eval 'sub USER_PROCESS () {7;}' unless defined(&USER_PROCESS);
    eval 'sub DEAD_PROCESS () {8;}' unless defined(&DEAD_PROCESS);
    if(defined(&_NETBSD_SOURCE)) {
	eval 'sub ACCOUNTING () {9;}' unless defined(&ACCOUNTING);
	eval 'sub SIGNATURE () {10;}' unless defined(&SIGNATURE);
	eval 'sub DOWN_TIME () {11;}' unless defined(&DOWN_TIME);
	eval 'sub RUNLVL_MSG () {"run-level %c";}' unless defined(&RUNLVL_MSG);
	eval 'sub BOOT_MSG () {"system boot";}' unless defined(&BOOT_MSG);
	eval 'sub OTIME_MSG () {"old time";}' unless defined(&OTIME_MSG);
	eval 'sub NTIME_MSG () {"new time";}' unless defined(&NTIME_MSG);
	eval 'sub DOWN_MSG () {"system down";}' unless defined(&DOWN_MSG);
    }
    eval 'sub ut_user () { &ut_name;}' unless defined(&ut_user);
    eval 'sub ut_xtime () { ($ut_tv->{tv_sec});}' unless defined(&ut_xtime);
    if(defined(&_LP64)) {
	eval 'sub _UTX_PADSIZE () {36;}' unless defined(&_UTX_PADSIZE);
    } else {
	eval 'sub _UTX_PADSIZE () {40;}' unless defined(&_UTX_PADSIZE);
    }
    if(defined(&_NETBSD_SOURCE)) {
    }
    unless(defined(&__LIBC12_SOURCE__)) {
    }
    if(defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LIBC12_SOURCE__)) {
	}
    }
}
1;
