require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_TFTP_H_)) {
    eval 'sub _TFTP_H_ () {1;}' unless defined(&_TFTP_H_);
    eval 'sub SEGSIZE () {512;}' unless defined(&SEGSIZE);
    eval 'sub SEGSIZE_MIN () {8;}' unless defined(&SEGSIZE_MIN);
    eval 'sub SEGSIZE_MAX () {65464;}' unless defined(&SEGSIZE_MAX);
    eval 'sub RRQ () {01;}' unless defined(&RRQ);
    eval 'sub WRQ () {02;}' unless defined(&WRQ);
    eval 'sub DATA () {03;}' unless defined(&DATA);
    eval 'sub ACK () {04;}' unless defined(&ACK);
    eval 'sub ERROR () {05;}' unless defined(&ERROR);
    eval 'sub OACK () {06;}' unless defined(&OACK);
    eval 'sub th_block () { ($th_u->{tu_block});}' unless defined(&th_block);
    eval 'sub th_code () { ($th_u->{tu_code});}' unless defined(&th_code);
    eval 'sub th_stuff () { ($th_u->{tu_stuff});}' unless defined(&th_stuff);
    eval 'sub th_msg () { &th_data;}' unless defined(&th_msg);
    eval 'sub EUNDEF () {0;}' unless defined(&EUNDEF);
    eval 'sub ENOTFOUND () {1;}' unless defined(&ENOTFOUND);
    eval 'sub EACCESS () {2;}' unless defined(&EACCESS);
    eval 'sub ENOSPACE () {3;}' unless defined(&ENOSPACE);
    eval 'sub EBADOP () {4;}' unless defined(&EBADOP);
    eval 'sub EBADID () {5;}' unless defined(&EBADID);
    eval 'sub EEXISTS () {6;}' unless defined(&EEXISTS);
    eval 'sub ENOUSER () {7;}' unless defined(&ENOUSER);
    eval 'sub EOPTNEG () {8;}' unless defined(&EOPTNEG);
}
1;
