require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_UFS_UFS_QUOTA_H_)) {
    eval 'sub _UFS_UFS_QUOTA_H_ () {1;}' unless defined(&_UFS_UFS_QUOTA_H_);
    eval 'sub MAXQUOTAS () {2;}' unless defined(&MAXQUOTAS);
    eval 'sub USRQUOTA () {0;}' unless defined(&USRQUOTA);
    eval 'sub GRPQUOTA () {1;}' unless defined(&GRPQUOTA);
    eval 'sub INITQFNAMES () {{ "user", "group", };}' unless defined(&INITQFNAMES);
    if(!defined(&HAVE_NBTOOL_CONFIG_H)) {
	require 'sys/quota.ph';
	eval 'sub quota_idtype_from_ufs {
	    my($ufstype) = @_;
    	    eval q({  &switch ($ufstype) {  &case  &USRQUOTA:  &QUOTA_IDTYPE_USER;  &case  &GRPQUOTA:  &QUOTA_IDTYPE_GROUP;  &default: -1; } });
	}' unless defined(&quota_idtype_from_ufs);
    }
    if(defined(&_KERNEL)) {
	require 'sys/cdefs.ph';
    }
}
1;
