From 1a8facffacb3203a5d4344a40fb9f0a57239f87d Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Tue, 5 Nov 2013 17:12:31 +0000 Subject: [PATCH] fix compilation without threads, thanks Andrea --- C/pl-yap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C/pl-yap.c b/C/pl-yap.c index 69f18ba06..89dfcc947 100755 --- a/C/pl-yap.c +++ b/C/pl-yap.c @@ -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; }