require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&PAM_MOD_MISC_H)) {
    eval 'sub PAM_MOD_MISC_H () {1;}' unless defined(&PAM_MOD_MISC_H);
    require 'sys/cdefs.ph';
    eval 'sub PAM_OPT_NULLOK () {"nullok";}' unless defined(&PAM_OPT_NULLOK);
    eval 'sub PAM_OPT_AUTH_AS_SELF () {"auth_as_self";}' unless defined(&PAM_OPT_AUTH_AS_SELF);
    eval 'sub PAM_OPT_ECHO_PASS () {"echo_pass";}' unless defined(&PAM_OPT_ECHO_PASS);
    eval 'sub PAM_OPT_DEBUG () {"debug";}' unless defined(&PAM_OPT_DEBUG);
    eval 'sub PAM_LOG () {(...)  &openpam_log( &PAM_LOG_DEBUG,  &__VA_ARGS__);}' unless defined(&PAM_LOG);
    eval 'sub PAM_RETURN {
        my($arg) = @_;
	    eval q( &return ($arg));
    }' unless defined(&PAM_RETURN);
    eval 'sub PAM_VERBOSE_ERROR () {(...)  &_pam_verbose_error( &pamh,  &flags,  &__FILE__,  &__func__,  &__VA_ARGS__);}' unless defined(&PAM_VERBOSE_ERROR);
}
1;
