require '_h2ph_pre.ph';

unless(defined(&_GLOB_H_)) {
    eval 'sub _GLOB_H_ () {1;}' unless defined(&_GLOB_H_);
    require 'sys/cdefs.ph';
    eval 'sub GLOB_APPEND () {0x0001;}' unless defined(&GLOB_APPEND);
    eval 'sub GLOB_DOOFFS () {0x0002;}' unless defined(&GLOB_DOOFFS);
    eval 'sub GLOB_ERR () {0x0004;}' unless defined(&GLOB_ERR);
    eval 'sub GLOB_MARK () {0x0008;}' unless defined(&GLOB_MARK);
    eval 'sub GLOB_NOCHECK () {0x0010;}' unless defined(&GLOB_NOCHECK);
    eval 'sub GLOB_NOSORT () {0x0020;}' unless defined(&GLOB_NOSORT);
    unless(defined(&_POSIX_SOURCE)) {
	eval 'sub GLOB_ALTDIRFUNC () {0x0040;}' unless defined(&GLOB_ALTDIRFUNC);
	eval 'sub GLOB_BRACE () {0x0080;}' unless defined(&GLOB_BRACE);
	eval 'sub GLOB_MAGCHAR () {0x0100;}' unless defined(&GLOB_MAGCHAR);
	eval 'sub GLOB_NOMAGIC () {0x0200;}' unless defined(&GLOB_NOMAGIC);
	eval 'sub GLOB_QUOTE () {0x0400;}' unless defined(&GLOB_QUOTE);
	eval 'sub GLOB_TILDE () {0x0800;}' unless defined(&GLOB_TILDE);
	eval 'sub GLOB_NOESCAPE () {0x1000;}' unless defined(&GLOB_NOESCAPE);
    }
    eval 'sub GLOB_NOSPACE () {(-1);}' unless defined(&GLOB_NOSPACE);
    eval 'sub GLOB_ABORTED () {(-2);}' unless defined(&GLOB_ABORTED);
    eval 'sub GLOB_NOMATCH () {(-3);}' unless defined(&GLOB_NOMATCH);
    eval 'sub GLOB_NOSYS () {(-4);}' unless defined(&GLOB_NOSYS);
    eval 'sub GLOB_ABEND () { &GLOB_ABORTED;}' unless defined(&GLOB_ABEND);
}
1;
