require '_h2ph_pre.ph';

unless(defined(&_FNMATCH_H_)) {
    eval 'sub _FNMATCH_H_ () {1;}' unless defined(&_FNMATCH_H_);
    eval 'sub FNM_NOMATCH () {1;}' unless defined(&FNM_NOMATCH);
    eval 'sub FNM_NOESCAPE () {0x01;}' unless defined(&FNM_NOESCAPE);
    eval 'sub FNM_PATHNAME () {0x02;}' unless defined(&FNM_PATHNAME);
    eval 'sub FNM_PERIOD () {0x04;}' unless defined(&FNM_PERIOD);
    unless(defined(&_POSIX_SOURCE)) {
	eval 'sub FNM_LEADING_DIR () {0x08;}' unless defined(&FNM_LEADING_DIR);
	eval 'sub FNM_CASEFOLD () {0x10;}' unless defined(&FNM_CASEFOLD);
	eval 'sub FNM_IGNORECASE () { &FNM_CASEFOLD;}' unless defined(&FNM_IGNORECASE);
	eval 'sub FNM_FILE_NAME () { &FNM_PATHNAME;}' unless defined(&FNM_FILE_NAME);
    }
    require 'sys/cdefs.ph';
}
1;
