RTEMS has no SA_RESTART

as RTEMS has no syscalls to restart.
This commit is contained in:
Michael Davidsaver 2019-10-21 11:41:19 -07:00
parent aba6548c53
commit 73ca180188

View File

@ -254,7 +254,9 @@ evsig_set_handler_(struct event_base *base,
#ifdef EVENT__HAVE_SIGACTION
memset(&sa, 0, sizeof(sa));
sa.sa_handler = handler;
#ifdef SA_RESTART
sa.sa_flags |= SA_RESTART;
#endif
sigfillset(&sa.sa_mask);
if (sigaction(evsignal, &sa, sig->sh_old[evsignal]) == -1) {