fix compilation without threads, thanks Andrea

This commit is contained in:
Vitor Santos Costa 2013-11-05 17:12:31 +00:00
parent 72bc04e63d
commit 1a8facffac
1 changed files with 4 additions and 1 deletions

View File

@ -1299,10 +1299,13 @@ sysError(const char *fm, ...)
int
raiseSignal(PL_local_data_t *ld, int sig)
{ if (sig == SIG_THREAD_SIGNAL) {
{
#if THREADS
if (sig == SIG_THREAD_SIGNAL) {
Yap_signal(YAP_ITI_SIGNAL);
return TRUE;
}
#endif
fprintf(stderr, "Unsupported signal %d\n", sig);
return FALSE;
}