require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_USER_SIGNAL_H)) {
    eval 'sub _USER_SIGNAL_H () {1;}' unless defined(&_USER_SIGNAL_H);
    require 'sys/cdefs.ph';
    require 'sys/signal.ph';
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	require 'sys/types.ph';
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	if(defined( &__GNUC__)) {
	    eval 'sub sigaddset {
	        my($set,$signo) = @_;
    		eval q({ \'int\' * &__errno( &void);  &if ($signo <= 0|| $signo >=  &_NSIG) { * &__errno() = 22; -1; } *$set |= (1<< (($signo)-1)); (0); });
	    }' unless defined(&sigaddset);
	    eval 'sub sigdelset {
	        my($set,$signo) = @_;
    		eval q({ \'int\' * &__errno( &void);  &if ($signo <= 0|| $signo >=  &_NSIG) { * &__errno() = 22; -1; } *$set &= ~(1<< (($signo)-1)); (0); });
	    }' unless defined(&sigdelset);
	    eval 'sub sigismember {
	        my($set,$signo) = @_;
    		eval q({ \'int\' * &__errno( &void);  &if ($signo <= 0|| $signo >=  &_NSIG) { * &__errno() = 22; -1; } ((*$set & (1<< (($signo)-1))) != 0); });
	    }' unless defined(&sigismember);
	}
	eval 'sub sigemptyset {
	    my($set) = @_;
    	    eval q((*($set) = 0, 0));
	}' unless defined(&sigemptyset);
	eval 'sub sigfillset {
	    my($set) = @_;
    	    eval q((*($set) = ~( &sigset_t)0, 0));
	}' unless defined(&sigfillset);
	if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420) {
	    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	    }
	    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199309|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 500) {
	    }
	}
    }
}
1;
