require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&EVENT2_BUFFER_COMPAT_H_INCLUDED_)) {
    eval 'sub EVENT2_BUFFER_COMPAT_H_INCLUDED_ () {1;}' unless defined(&EVENT2_BUFFER_COMPAT_H_INCLUDED_);
    require 'event2/visibility.ph';
    eval 'sub EVBUFFER_LENGTH {
        my($x) = @_;
	    eval q( &evbuffer_get_length($x));
    }' unless defined(&EVBUFFER_LENGTH);
    eval 'sub EVBUFFER_DATA {
        my($x) = @_;
	    eval q( &evbuffer_pullup(($x), -1));
    }' unless defined(&EVBUFFER_DATA);
}
1;
