require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_LIBMILTER_MFAPI_H)) {
    eval 'sub _LIBMILTER_MFAPI_H () {1;}' unless defined(&_LIBMILTER_MFAPI_H);
    unless(defined(&SMFI_VERSION)) {
	eval 'sub SMFI_VERSION () {0x1000000;}' unless defined(&SMFI_VERSION);
    }
    eval 'sub SM_LM_VRS_MAJOR {
        my($v) = @_;
	    eval q(((($v) & 0x7f000000) >> 24));
    }' unless defined(&SM_LM_VRS_MAJOR);
    eval 'sub SM_LM_VRS_MINOR {
        my($v) = @_;
	    eval q(((($v) & 0x7fff00) >> 8));
    }' unless defined(&SM_LM_VRS_MINOR);
    eval 'sub SM_LM_VRS_PLVL {
        my($v) = @_;
	    eval q((($v) & 0x7f));
    }' unless defined(&SM_LM_VRS_PLVL);
    require 'sys/types.ph';
    require 'sys/socket.ph';
    require 'libmilter/mfdef.ph';
    eval 'sub LIBMILTER_API () { &extern;}' unless defined(&LIBMILTER_API);
    if(defined(&__cplusplus)) {
    }
    unless(defined(&_SOCK_ADDR)) {
	eval 'sub _SOCK_ADDR () {\'struct sockaddr\';}' unless defined(&_SOCK_ADDR);
    }
    eval 'sub MI_SUCCESS () {0;}' unless defined(&MI_SUCCESS);
    eval 'sub MI_FAILURE () {(-1);}' unless defined(&MI_FAILURE);
    if((defined(&_FFR_WORKERS_POOL) ? &_FFR_WORKERS_POOL : 0)) {
	eval 'sub MI_CONTINUE () {1;}' unless defined(&MI_CONTINUE);
    }
    if(defined( &__linux__)  && defined( &__GNUC__)  && defined( &__cplusplus)  && (defined(&__GNUC_MINOR__) ? &__GNUC_MINOR__ : 0) >= 8) {
	eval 'sub SM__P {
	    my($X) = @_;
    	    eval q( &__PMT($X));
	}' unless defined(&SM__P);
    } else {
	eval 'sub SM__P {
	    my($X) = @_;
    	    eval q( &__P($X));
	}' unless defined(&SM__P);
    }
    unless(defined(&__P)) {
	if(defined(&__STDC__)) {
	    eval 'sub __P {
	        my($X) = @_;
    		eval q($X);
	    }' unless defined(&__P);
	} else {
	    eval 'sub __P {
	        my($X) = @_;
    		eval q(());
	    }' unless defined(&__P);
	}
    }
    if((defined(&SM_CONF_STDBOOL_H) ? &SM_CONF_STDBOOL_H : 0)) {
	require 'stdbool.ph';
    } else {
	unless(defined(&__cplusplus)) {
	    unless(defined(&bool)) {
		unless(defined(&__bool_true_false_are_defined)) {
		    eval 'sub __bool_true_false_are_defined () {1;}' unless defined(&__bool_true_false_are_defined);
		}
	    }
	}
    }
    if(0) {
    }
    if((defined(&_FFR_MAXDATASIZE) ? &_FFR_MAXDATASIZE : 0)) {
    }
    eval 'sub SMFIF_NONE () {0x;}' unless defined(&SMFIF_NONE);
    eval 'sub SMFIF_ADDHDRS () {0x1;}' unless defined(&SMFIF_ADDHDRS);
    eval 'sub SMFIF_CHGBODY () {0x2;}' unless defined(&SMFIF_CHGBODY);
    eval 'sub SMFIF_MODBODY () { &SMFIF_CHGBODY;}' unless defined(&SMFIF_MODBODY);
    eval 'sub SMFIF_ADDRCPT () {0x4;}' unless defined(&SMFIF_ADDRCPT);
    eval 'sub SMFIF_DELRCPT () {0x8;}' unless defined(&SMFIF_DELRCPT);
    eval 'sub SMFIF_CHGHDRS () {0x10;}' unless defined(&SMFIF_CHGHDRS);
    eval 'sub SMFIF_QUARANTINE () {0x20;}' unless defined(&SMFIF_QUARANTINE);
    eval 'sub SMFIF_CHGFROM () {0x40;}' unless defined(&SMFIF_CHGFROM);
    eval 'sub SMFIF_ADDRCPT_PAR () {0x80;}' unless defined(&SMFIF_ADDRCPT_PAR);
    eval 'sub SMFIF_SETSYMLIST () {0x100;}' unless defined(&SMFIF_SETSYMLIST);
    eval 'sub SMFIM_FIRST () {0;}' unless defined(&SMFIM_FIRST);
    eval 'sub SMFIM_CONNECT () {0;}' unless defined(&SMFIM_CONNECT);
    eval 'sub SMFIM_HELO () {1;}' unless defined(&SMFIM_HELO);
    eval 'sub SMFIM_ENVFROM () {2;}' unless defined(&SMFIM_ENVFROM);
    eval 'sub SMFIM_ENVRCPT () {3;}' unless defined(&SMFIM_ENVRCPT);
    eval 'sub SMFIM_DATA () {4;}' unless defined(&SMFIM_DATA);
    eval 'sub SMFIM_EOM () {5;}' unless defined(&SMFIM_EOM);
    eval 'sub SMFIM_EOH () {6;}' unless defined(&SMFIM_EOH);
    eval 'sub SMFIM_LAST () {6;}' unless defined(&SMFIM_LAST);
    eval 'sub SMFIS_CONTINUE () {0;}' unless defined(&SMFIS_CONTINUE);
    eval 'sub SMFIS_REJECT () {1;}' unless defined(&SMFIS_REJECT);
    eval 'sub SMFIS_DISCARD () {2;}' unless defined(&SMFIS_DISCARD);
    eval 'sub SMFIS_ACCEPT () {3;}' unless defined(&SMFIS_ACCEPT);
    eval 'sub SMFIS_TEMPFAIL () {4;}' unless defined(&SMFIS_TEMPFAIL);
    eval 'sub SMFIS_NOREPLY () {7;}' unless defined(&SMFIS_NOREPLY);
    eval 'sub SMFIS_SKIP () {8;}' unless defined(&SMFIS_SKIP);
    eval 'sub SMFIS_ALL_OPTS () {10;}' unless defined(&SMFIS_ALL_OPTS);
    if(0) {
    }
    if((defined(&_FFR_THREAD_MONITOR) ? &_FFR_THREAD_MONITOR : 0)) {
    }
    if(defined(&__cplusplus)) {
    }
}
1;
