Check wether some SVR4 defines SIGPOLL equal to SIGIO

This commit is contained in:
mainzelm 2000-12-21 15:46:34 +00:00
parent b8c0e87293
commit f8af34a318
2 changed files with 10 additions and 6 deletions

View File

@ -60,11 +60,13 @@ s48_sysdep_init(void)
#endif
#ifdef SIGIO
s48_setcatcher(SIGIO, when_scsh_interrupt);
#endif
#ifdef SIGPOLL
#endif
#if defined SIGPOLL && defined SIGIO && SIGPOLL != SIGIO
s48_setcatcher(SIGPOLL, when_scsh_interrupt);
#endif
#ifdef SIGPROF
#elseif defined SIGPOLL && !defined SIGIO
s48_setcatcher(SIGPOLL, when_scsh_interrupt);
#endif
#ifdef SIGPROF
s48_setcatcher(SIGPROF, when_scsh_interrupt);
#endif
#ifdef SIGPWR

View File

@ -25,8 +25,10 @@ int main(int argc, char* argv[]){
#ifdef SIGIO
case SIGIO : printf("scshint_io"); break;
#endif
#ifdef SIGPOLL
case SIGPOLL : printf("scshint_poll"); break;
#if defined SIGPOLL && defined SIGIO && SIGPOLL != SIGIO
case SIGPOLL : printf("scshint_poll"); break;
#elseif defined SIGPOLL && !defined SIGIO
case SIGPOLL : printf("scshint_poll"); break;
#endif
#ifdef SIGPROF
case SIGPROF : printf("scshint_prof"); break;