From 6793a1f83b658503068bc6b269d75debeb2211d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 4 Nov 2013 21:41:49 +0000 Subject: [PATCH] fix thread-only compilation --- library/dialect/swi/fli/swi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/dialect/swi/fli/swi.c b/library/dialect/swi/fli/swi.c index 55bc7894e..81a353109 100755 --- a/library/dialect/swi/fli/swi.c +++ b/library/dialect/swi/fli/swi.c @@ -30,6 +30,9 @@ #if HAVE_ERRNO_H #include #endif +#if HAVE_SIGNAL_H +#include +#endif #define PL_KERNEL 1 @@ -2479,6 +2482,8 @@ X_API int PL_thread_self(void) #endif } +#if THREADS + static int alertThread(int tid) { @@ -2512,7 +2517,7 @@ PL_thread_raise(int tid, int sig) return TRUE; } - +#endif X_API int PL_unify_thread_id(term_t t, int i) {