require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DIRENT_H_)) {
    eval 'sub _DIRENT_H_ () {1;}' unless defined(&_DIRENT_H_);
    require 'sys/cdefs.ph';
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420) {
	require 'sys/types.ph';
    }
    require 'sys/dirent.ph';
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	eval 'sub d_ino () { &d_fileno;}' unless defined(&d_ino);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	eval 'sub DIRBLKSIZ () {1024;}' unless defined(&DIRBLKSIZ);
	eval 'sub dirfd {
	    my($dirp) = @_;
    	    eval q((($dirp)-> &dd_fd));
	}' unless defined(&dirfd);
	eval 'sub DTF_NODUP () {0x2;}' unless defined(&DTF_NODUP);
	unless(defined(&NULL)) {
	    if(defined(&__GNUG__)) {
		eval 'sub NULL () { &__null;}' unless defined(&NULL);
	    } else {
		eval 'sub NULL () {0;}' unless defined(&NULL);
	    }
	}
    } else {
    }
    unless(defined(&_KERNEL)) {
	if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	}
	if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	}
	if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199506|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 500) {
	}
    }
}
1;
